{"id":4695,"date":"2026-05-22T13:42:22","date_gmt":"2026-05-22T11:42:22","guid":{"rendered":"https:\/\/guides.heyloyalty.com\/help\/tracking-the-experience-industry\/"},"modified":"2026-05-22T15:20:16","modified_gmt":"2026-05-22T13:20:16","slug":"tracking-the-experience-industry","status":"publish","type":"ht_kb","link":"https:\/\/guides.heyloyalty.com\/en\/help\/tracking-the-experience-industry\/","title":{"rendered":"Tracking &#8211; The experience industry"},"content":{"rendered":"<div class=\"wp-block-post-date__modified-date wp-block-post-date\"><time datetime=\"2026-05-22T15:20:16+02:00\">22. May 2026<\/time><\/div>\n<p>In this guide, we show you how to set up tracking in Heyloyalty to improve your communication and segmentation in the hospitality industry. You&#8217;ll gain insights into setting up integrations, implementing scripts and how to effectively collect data to optimize the guest experience before, during and after a visit. <\/p>\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><strong>Tracking: What is it and what does it require?&nbsp;<\/strong><br><br>If you have a&nbsp;Premium license, you get access to our standard package of behavioral triggers for your automations, including abandoned cart and product interest. All of these behavioral triggers are based on data from&nbsp;<strong>Tracking<\/strong>.&nbsp;&nbsp;<br><br>Tracking is a&nbsp;data warehouse. In addition, &nbsp;with Tracking, you can implement a script&nbsp;so you can track behavioral data from your website and store, enrich and utilize it in the data warehouse.&nbsp;&nbsp;<\/p>\n\n<p><\/p>\n\n<h2 class=\"wp-block-heading\">The value of tracking<\/h2>\n\n<p><\/p>\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\">More relevant communication before, during and after the visit<\/mark><\/strong><br\/>Tracking makes it possible to customize communication for the entire guest experience &#8211; before, during and after an event or visit. For example, you can send practical information leading up to the visit, relevant service messages during the experience and inspiring follow-up afterwards to strengthen the relationship and increase the likelihood of return visits. <\/p>\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\">Communication based on interests and behavior<\/mark><\/strong><br\/>Once tracking is implemented, you can identify which shows, exhibitions, artists, experiences or genres guests show interest in on the website. This makes it possible to send more targeted communication based on their interests and past behavior. <\/p>\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\">Opportunities for upselling and relevant purchases<\/mark><\/strong><br\/>Tracking allows you to target guests who have not yet made relevant purchases. For example, guests who have bought a ticket to a show but have not yet booked food, parking, merchandise or other purchases related to the experience. <\/p>\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\"><strong>Reactivate previous interests<\/strong><\/mark><br\/>With tracking data, you can communicate directly to guests who have previously shown interest in a specific genre, artist, experience or event type. This makes it easier to create relevant campaigns and invite guests back for similar experiences. <\/p>\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\">Strengthen loyalty and relationships with guests<\/mark><\/strong><br\/>Tracking makes it possible to identify loyal guests who visit you often so they can be rewarded with special messages, exclusive content or relevant benefits. At the same time, you can target communication to guests who haven&#8217;t visited for a long time and actively work to bring them back. <\/p>\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\">Better segmentation of your guests<\/mark><\/strong><br\/>Tracking data provides a stronger basis for segmentation. Among other things, you can split between: <\/p>\n\n<ul class=\"wp-block-list\">\n<li>Guests who have visited you before<\/li>\n\n\n\n<li>People who have only signed up for the newsletter<\/li>\n\n\n\n<li>Guests with annual pass or membership<\/li>\n\n\n\n<li>Guests who have only visited you once<\/li>\n\n\n\n<li>Guests with an interest in specific experiences or genres<\/li>\n<\/ul>\n\n<p>This makes it possible to create more relevant campaigns and automations for different types of visitors.<\/p>\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\">A stronger data foundation in Heyloyalty<\/mark><\/strong><br\/>When tracking is set up correctly, Heyloyalty&#8217;s data warehouse is continuously enriched with behavioral data from your website. This provides a stronger foundation for segmentation, automations and analytics across the entire guest journey. <\/p>\n\n<p>Tracking is therefore a key part of working data-driven with email marketing and automated communication in the experience industry through Heyloyalty.<\/p>\n\n<h2 class=\"wp-block-heading\">Step 1 &#8211; Create tracking integration<\/h2>\n\n<p><\/p><p>Go to <strong>Integrations<\/strong> \u2192 <strong>List integrations<\/strong> \u2192 <strong>Tracking<\/strong> \u2192 <strong>Set up integration<\/strong> \u2192 <strong>Create new Tracking<\/strong>.<\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a1224ec86ce8&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a1224ec86ce8\" class=\"wp-block-image size-full wp-lightbox-container\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1835\" height=\"965\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-listeintegration.png\" alt=\"\" class=\"wp-image-4086\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-listeintegration.png 1835w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-listeintegration-300x158.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-listeintegration-1024x539.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-listeintegration-768x404.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-listeintegration-50x26.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-listeintegration-1536x808.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-listeintegration-60x32.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-listeintegration-100x53.png 100w\" sizes=\"(max-width: 1835px) 100vw, 1835px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a1224ec8720f&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a1224ec8720f\" class=\"wp-block-image size-full wp-lightbox-container\"><img decoding=\"async\" width=\"1835\" height=\"965\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-ny-Tracking.png\" alt=\"\" class=\"wp-image-4087\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-ny-Tracking.png 1835w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-ny-Tracking-300x158.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-ny-Tracking-1024x539.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-ny-Tracking-768x404.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-ny-Tracking-50x26.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-ny-Tracking-1536x808.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-ny-Tracking-60x32.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opret-ny-Tracking-100x53.png 100w\" sizes=\"(max-width: 1835px) 100vw, 1835px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n<p>Here you will be greeted by the integration page where you need to set various settings, as you can see in the image below:<\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a1224ec876be&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a1224ec876be\" class=\"wp-block-image size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1024\" height=\"539\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Udfyld-indstillinger-1-1024x539.png\" alt=\"\" class=\"wp-image-4089\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Udfyld-indstillinger-1-1024x539.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Udfyld-indstillinger-1-300x158.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Udfyld-indstillinger-1-768x404.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Udfyld-indstillinger-1-50x26.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Udfyld-indstillinger-1-1536x808.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Udfyld-indstillinger-1-60x32.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Udfyld-indstillinger-1-100x53.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Udfyld-indstillinger-1.png 1835w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n<p>You can read here what the different fields\/settings mean:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><strong>List:<\/strong> Select which list to associate the integration with. Tracking can only be used on the list selected in the integration. <\/li>\n\n\n\n<li><strong>Session time: <\/strong>Must be a number, and it must be the same as in your script. Typically, we recommend 45 minutes, so if you follow that recommendation, enter 45 in that field. <\/li>\n\n\n\n<li><strong>Image format: <\/strong>Choose the format of your product images. If in doubt, leave it on <strong>portrait. <\/strong>The image format is used, among other things, to set up a lost basket. <\/li>\n\n\n\n<li><strong>Product feed:<\/strong> Choose which feed the integration should use. Among other things, this determines which products your tracking takes data from <\/li>\n\n\n\n<li><strong>Lost basket type: <\/strong>There are two options here:\n<ul class=\"wp-block-list\">\n<li><strong>Lost basket ID:<\/strong> In most cases, you should select this option as most ticketing systems support unique basket IDs in the URL. Your online shop will generate a unique link to the lost basket, for example:<strong>www.dinURL.dk\/basket\/?basketnumber=29fSc-df2s.<\/strong> In the example above, a unique basket ID is inserted after <code>=<\/code>. Heyloyalty uses this ID to recreate the guest&#8217;s basket.  <\/li>\n\n\n\n<li><strong>Product: <\/strong>If your online store doesn&#8217;t support lost cart ID, the cart can instead be recreated via product parameters in the URL. This is done by adding product information to the lost cart URL, for example: <br\/> www.dinURL.dk\/?ProductID=154Ds&#038;amount=1&#038;productID=98DWC&#038;amount=3<br\/>In the example above, two products have been added to the URL. Each product contains:  \n<ul class=\"wp-block-list\">\n<li><strong>productID<\/strong> = product ID<\/li>\n\n\n\n<li><strong>amount<\/strong> = quantity of the product in the basket<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Lost basket url<\/strong>: Here you insert the URL of the basket on your booking system. It will often be something like:<a href=\"http:\/\/www.dinwebshop.dk\/kurv\" target=\"_blank\" rel=\"noreferrer noopener\"> www.yourbooking.com\/cart<\/a> or <a href=\"http:\/\/www.webshop.dk\/basket\" target=\"_blank\" rel=\"noreferrer noopener\">www.website.com\/basket<\/a> <\/li>\n\n\n\n<li><strong>Sign dividing categories: <\/strong>Refers to your <a href=\"https:\/\/guides.heyloyalty.com\/en\/help-category\/product-feed\/\" data-type=\"link\" data-id=\"https:\/\/guides.heyloyalty.com\/help-category\/produktfeed\/\" target=\"_blank\" rel=\"noreferrer noopener\">product feed<\/a>, so how are the categories divided in your product feed. If you don&#8217;t have categories in your product feed, you can set the option to <strong>None.<\/strong>  <\/li>\n\n\n\n<li><strong>Number of visits to category: <\/strong>Specify how many times a member must visit a category before a <a href=\"https:\/\/guides.heyloyalty.com\/en\/help\/category-interest\/\" data-type=\"link\" data-id=\"http:\/\/guides.heyloyalty.com\/help\/kategoriinteresse\/\" target=\"_blank\" rel=\"noreferrer noopener\">category interest<\/a> automation is triggered.<\/li>\n\n\n\n<li><strong>Number of days the visits are over<\/strong>: Specify how many days the visits should be distributed over to trigger a category interest automation.<\/li>\n<\/ul>\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><strong>Note: Number of visits by category<\/strong> and <strong>Number of days visited<\/strong> should be considered based on your users&#8217; usage and buying patterns. A setup that hits most people is to set &nbsp;<strong>Number of visits on category <\/strong>to be three and&nbsp;<strong>The number of days the visits are over <\/strong>can be seven.&nbsp;<\/p>\n\n<ul class=\"wp-block-list\">\n<li><strong>Disable UTM_content parameter<\/strong>: If you want to use our default, set the setting to <strong>no<\/strong>. If you want to control your utm_content parameter via your custom content template, you should select &#8216;Yes&#8217; to disable utm_content. <\/li>\n<\/ul>\n\n<ul class=\"wp-block-list\">\n<li><strong>Unique ID by session: <\/strong>When a session ends with a purchase, Heyloyalty needs a unique ID to recognize the purchase. For most, this will be <strong>the order_number<\/strong>.<br\/>If you use a different ID to recognize purchases, such as <strong>booking ID<\/strong>, select the appropriate option. If the ID has a different name, select Other and enter the field name.  <\/li>\n<\/ul>\n\n<p>Once all the above settings are set up, you can save the integration.<\/p>\n\n<h2 class=\"wp-block-heading\">Step 2 &#8211; Implement tracking on website and booking system<\/h2>\n\n<p>For tracking to work properly, Heyloyalty&#8217;s <a href=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\" data-type=\"link\" data-id=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\" target=\"_blank\" rel=\"noreferrer noopener\">tracking script must be implemented<\/a> on your website and any booking systems so that behavioral and purchase data can be sent to Heyloyalty.<\/p>\n\n<p>Implementation is often done by a developer or IT manager. You can find our <a href=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-documentation\" target=\"_blank\" rel=\"noreferrer noopener\">tracking documentation here<\/a>. <\/p>\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><strong>Note: <\/strong>The tracking script may only be activated after the user has accepted marketing cookies via your cookie banner.<br\/>Implementation and correct setup is the responsibility of the customer. Heyloyalty provides the necessary basic script and documentation. <\/p>\n\n<h3 class=\"wp-block-heading\">Implement tracking script on the website<\/h3>\n\n<p>The tracking<a href=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\" data-type=\"link\" data-id=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\"> script can be found here<\/a>. We recommend that the script is implemented on all pages of the website to ensure full data coverage. Therefore, the script is typically placed in either <strong>the header<\/strong> or <strong>footer<\/strong>.  <\/p>\n\n<p>To implement the script, you need to insert some parameters in the script. Which are marked in the image: <\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a1224ec88b40&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a1224ec88b40\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"906\" height=\"353\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tracking-script.png\" alt=\"\" class=\"wp-image-4384\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tracking-script.png 906w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tracking-script-300x117.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tracking-script-768x299.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tracking-script-50x19.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tracking-script-60x23.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tracking-script-100x39.png 100w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><strong>Note: <\/strong>The value must be inserted between &#8221;, so it could look like this: <br\/>BiTracking.initialize(&#8216;KhOOd15xqBp3CQZER&#8217;,&#8217;45&#8217;,&#8217;10950&#8242;);<\/p>\n\n<ul class=\"wp-block-list\">\n<li><strong>API key:<\/strong> Found under <strong>Account details<\/strong> in your Heyloyalty account<\/li>\n\n\n\n<li><strong>Session time:<\/strong> Is the value you selected when setting up the tracking integration. Found under <strong>List integration \u2192 Tracking<\/strong>. <\/li>\n\n\n\n<li><strong>Tracking ID<\/strong>: Found under <strong>List integration \u2192 Tracking<\/strong>. Used if the tracking should only apply to one specific list.<br\/>If the tracking is to apply to multiple lists, the field must be empty. <\/li>\n<\/ul>\n\n<h3 class=\"wp-block-heading\">If booking on a separate site<\/h3>\n\n<p>If your booking flow takes place on an external or separate website, it&#8217;s important to be aware of cookie and session ID forwarding between the different domains.<\/p>\n\n<p>This ensures that Heyloyalty can link guest behavior on the main site with booking and purchase data from the booking site. Without proper forwarding, the customer journey can be split, which can affect tracking, segmentation and automations. <\/p>\n\n<p><\/p>\n\n<h2 class=\"wp-block-heading\">Step 3: Fire events from the right webshop sites<\/h2>\n\n<p>If the integration doesn&#8217;t automatically fire events in Heyloyalty, you need to manually add events on each relevant product page, subpage, etc. Events should trigger on the pages you want to get data from. <\/p>\n\n<p>If you can already see events in <strong>the Activity Feed<\/strong> in Heyloyalty, you can skip this section.<\/p>\n\n<p>Events should be placed within a <code>&lt;script&gt;<\/code> tag, which could be the same script as above. Add events to the relevant pages in the webshop and make sure that each event is only fired from the correct page. <\/p>\n\n<h3 class=\"wp-block-heading\">Available events<\/h3>\n\n<ul class=\"wp-block-list\">\n<li><strong>hlt.visit(PRODUCTID, CATEGORYID, CATEGORYNAME, VARIANT)<\/strong> &#8211; Fired from all pages except &#8220;thanks for the purchase&#8221;. Used on product pages, category pages, blog posts etc. You can read more about visit events in our documentation <a href=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\/Example-for-visit\" data-type=\"link\" data-id=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\/Example-for-visit\" target=\"_blank\" rel=\"noreferrer noopener\">here.<\/a> <\/li>\n\n\n\n<li><strong>hlt.addToBasket(PRODUCTTID, AMOUNT, CATEGORYID, BASKETTID, CATEGORYNAME, VARIANT)<\/strong> &#8211; Fired from the cart page or from each &#8220;add to cart&#8221; button. You can read more about addTo events in our documentation <a href=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\/Example-for-addToBasket\" data-type=\"link\" data-id=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\/Example-for-addToBasket\" target=\"_blank\" rel=\"noreferrer noopener\">here.<\/a> <\/li>\n\n\n\n<li><strong>hlt.updateBasket<\/strong> &#8211; Used if the number of products in the basket changes. You can read more about update events in our documentation <a href=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\/Example-for-updateBasket\" data-type=\"link\" data-id=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\/Example-for-addToBasket\" target=\"_blank\" rel=\"noreferrer noopener\">here.<\/a> <\/li>\n\n\n\n<li><strong>hlt.removeFromBasket(PRODUCTID)<\/strong> &#8211; Fired when a product is removed from the basket. You can read more about remove events in our documentation <a href=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\/Example-for-removefrombasket\" data-type=\"link\" data-id=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\/Example-for-addToBasket\" target=\"_blank\" rel=\"noreferrer noopener\">here.<\/a> <\/li>\n\n\n\n<li><strong>hlt.purchasedBasket(BASKETPRICE, ORDERNUMBER)<\/strong> &#8211; Fired from the &#8220;thank you for your purchase&#8221; page after the purchase is complete. You can read more about purchased <a href=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\/Example-for-purchasedBasket\" data-type=\"link\" data-id=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\/Example-for-purchasedBasket\" target=\"_blank\" rel=\"noreferrer noopener\">here.<\/a> <\/li>\n\n\n\n<li><strong>hlt.pairEmail(EMAIL)<\/strong> &#8211; Optional, pairs email directly from sign-up\/sign-in form. You can read more about this here. <\/li>\n\n\n\n<li><strong>hlt.pairPhone(&#8220;PHONENUMBER&#8221;)<\/strong> &#8211; Optional, pairs the phone number with the session in the tracking. You can read more about this <a href=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\/Example-for-pairPhone\" data-type=\"link\" data-id=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\/Example-for-pairPhone\">here.<\/a> <\/li>\n<\/ul>\n\n<h3 class=\"wp-block-heading\">Pairing directly from a signup\/login form<\/h3>\n\n<p>To track which contacts perform the different actions on your website, you need to make sure that the contact is paired. Once tracking is implemented, you can set up the pairEmail event on your own sign-up and login forms. This makes it possible to identify and pair contacts directly when they fill out a form on the website. <\/p>\n\n<p>If you are using Heyloyalty&#8217;s extended tracking script, this pairing is already built into the script. Read more about how to implement the extended <a href=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\/Example-for-pairEmail\" data-type=\"link\" data-id=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\/Example-for-pairEmail\" target=\"_blank\" rel=\"noreferrer noopener\">tracking script here<\/a>. <\/p>\n\n<p>Heyloyalty also supports automatic pair-on-click. This means that when a contact clicks on a link in an email or SMS sent from Heyloyalty, the pairEmail event is automatically activated when the visitor lands on the website. <\/p>\n\n<h2 class=\"wp-block-heading\">Setting up Tracking in connection with Multi-shop<\/h2>\n\n<p>If you have multiple webshops that need the same script but different tracking databases, use the script below. Remember to replace <strong>webshopnoX<\/strong> with your domains and <strong>integrationIDX<\/strong> with your integrations. <\/p>\n\n<pre class=\"wp-block-code\"><code>&lt;script&gt;\nvar currentDomain = window.location.hostname;\nswitch (currentDomain) {\n  case 'webshopno1':\n    trackingId = 'integrationID1';\n    break;\n  case 'webshopno2':\n    trackingId = 'integrationID2';\n    break;\n  case 'webshopno3':\n    trackingId = 'integrationID3';\n    break;\n  default:\n    trackingId = 'integrationID1';\n}\n&lt;\/script&gt;\n&lt;script type=\"text\/javascript\" language=\"javascript\"&gt;\nvar hlt;\nvar BiTrackingLoaded = function (BiTracking) {\n  hlt = BiTracking;\n  BiTracking.initialize('INSERTAPIKEYHERE', INSERTSESSIONTIMEHERE, String(trackingId));\n  hlt.visit(\"PRODUCTID\", \"CATEGORYID\", \"CATEGORYNAME\");\n}\n&lt;\/script&gt;\n&lt;script&gt;\n(function (d, t) {\n  var g = d.createElement(t),\n      s = d.getElementsByTagName(t)&#91;0];\n  h = \"https:\" == document.location.protocol ? \"https:\/\/\" : \"http:\/\/\";\n  g.src = h + 'tracking.heycommerce.dk\/hlbi.js';\n  s.parentNode.insertBefore(g, s);\n}(document, 'script'));\n&lt;\/script&gt;<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Tracking is the foundation for a more relevant guest experience<\/h2>\n\n<p>When tracking is implemented correctly, you&#8217;ll have a stronger data foundation for more targeted communication, <a href=\"https:\/\/guides.heyloyalty.com\/en\/help-category\/segmentation\/\" data-type=\"link\" data-id=\"https:\/\/guides.heyloyalty.com\/help-category\/segmentering\/\" target=\"_blank\" rel=\"noreferrer noopener\">segmentation<\/a> and <a href=\"https:\/\/guides.heyloyalty.com\/en\/help-category\/automationsflow\/\" data-type=\"link\" data-id=\"https:\/\/guides.heyloyalty.com\/help-category\/automationsflow\/\" target=\"_blank\" rel=\"noreferrer noopener\">automations <\/a>in Heyloyalty.<\/p>\n\n<p>This makes it possible to create more relevant experiences for your guests &#8211; before, during and after their visit &#8211; based on their interests, behavior and previous engagement.<\/p>\n\n<p>At the same time, tracking gives you better opportunities to work with loyalty, upselling and return visits through automated flows and more personalized communication across the entire guest journey.<\/p>\n\n<p>We recommend continuously validating your tracking setup and ensuring that data is recorded correctly to get the most out of your Heyloyalty integration.<\/p>\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><form role=\"search\" method=\"get\" action=\"https:\/\/guides.heyloyalty.com\/en\/\" class=\"wp-block-search__button-outside wp-block-search__text-button wp-block-search\"    ><label class=\"wp-block-search__label\" for=\"wp-block-search__input-1\" >Fandt du ikke hvad du ledte efter?<\/label><div class=\"wp-block-search__inside-wrapper\" ><input class=\"wp-block-search__input\" id=\"wp-block-search__input-1\" placeholder=\"S\u00f8g p\u00e5 emner, funktioner eller sider\" value=\"\" type=\"search\" name=\"s\" required \/><button aria-label=\"S\u00f8g\" class=\"wp-block-search__button wp-element-button\" type=\"submit\" >S\u00f8g<\/button><\/div><\/form>\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-6c531013 wp-block-group-is-layout-flex\">\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"208\" height=\"118\" src=\"https:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/HL-Logo.png\" alt=\"\" class=\"wp-image-85\" style=\"width:108px;height:auto\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/HL-Logo.png 208w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/HL-Logo-50x28.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/HL-Logo-60x34.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/HL-Logo-100x57.png 100w\" sizes=\"(max-width: 208px) 100vw, 208px\" \/><\/figure>\n\n\n\n<p><br>Hvis du mangler information eller hj\u00e6lp, som du ikke finder her p\u00e5 guide sitet, er du altid velkommen til at kontakte vores support! <br><a href=\"mailto:support@ubivox.com\">support@heyloyalty.com<\/a> \/ tlf. 87 300 399<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we show you how to set up tracking in Heyloyalty to improve your communication and segmentation in the hospitality industry. You&#8217;ll gain insights into setting up integrations, implementing scripts and how to effectively collect data to optimize the guest experience before, during and after a visit. The&#8230;<\/p>\n","protected":false},"author":7,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[93,79],"ht-kb-tag":[],"class_list":["post-4695","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-tracking","ht_kb_category-data-og-tracking"],"_links":{"self":[{"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb\/4695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/comments?post=4695"}],"version-history":[{"count":2,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb\/4695\/revisions"}],"predecessor-version":[{"id":4702,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb\/4695\/revisions\/4702"}],"wp:attachment":[{"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/media?parent=4695"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb-category?post=4695"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=4695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}