{"id":927,"date":"2026-01-16T13:38:25","date_gmt":"2026-01-16T12:38:25","guid":{"rendered":"https:\/\/heyloyalty.com\/support\/knowledge-base\/tracking\/"},"modified":"2026-05-22T13:53:25","modified_gmt":"2026-05-22T11:53:25","slug":"tracking","status":"publish","type":"ht_kb","link":"https:\/\/guides.heyloyalty.com\/en\/help\/tracking\/","title":{"rendered":"Tracking &#8211; Webshop"},"content":{"rendered":"<div class=\"wp-block-post-date__modified-date wp-block-post-date\"><time datetime=\"2026-05-22T13:53:25+02:00\">22. May 2026<\/time><\/div>\n<p class=\"wp-block-paragraph\">Ready to give your email marketing a boost with Heyloyalty tracking? In this guide, we&#8217;ll walk you through what it takes to get started with tracking on your website. <\/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 class=\"wp-block-paragraph\"><\/p>\n\n<h2 class=\"wp-block-heading\">The value of tracking<\/h2>\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\">More personalized communication<\/mark><\/strong><br\/>Tracking makes it possible to collect data about customer behavior on your online store so you can send more relevant and personalized messages based on their interests, product views and purchase history.<\/p>\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\">Automation based on behavior<\/mark><\/strong><br\/>Once tracking is implemented, you can enable automatic flows such as lost basket, product interest and category triggers. This makes it possible to automatically respond to customer actions and create more valuable customer experiences. <\/p>\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\">Better segmentation<\/mark><\/strong><br\/>Tracking data provides a stronger data foundation for segmentation. You can build audiences based on behavior, categories visited, product interests and purchases to make your campaigns more targeted and relevant. <\/p>\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\"><strong>Increased conversion<\/strong><\/mark><br\/>By working with behavioral marketing, you can target customers at the right time with the right message. This can help increase engagement, conversions and repeat purchases. <\/p>\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\">Insight into customer behavior<\/mark><\/strong><br\/>Tracking gives you insight into how customers move around your webshop. Through Heyloyalty&#8217;s Insight and Activity feed, you can see which products and categories are most visited and use that knowledge to optimize your communication and marketing. <\/p>\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\">A stronger data foundation in Heyloyalty<\/mark><\/strong><\/p>\n\n<p class=\"wp-block-paragraph\">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 automations, segmentation and analytics across the customer journey. <\/p>\n\n<p class=\"wp-block-paragraph\">Tracking is therefore a central part of working data-driven with email marketing and automated communication at Heyloyalty.<\/p>\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n<h2 class=\"wp-block-heading\">Step 1 &#8211; Create tracking integration<\/h2>\n\n<p class=\"wp-block-paragraph\">Set up Tracking by clicking on Integrations &#8211;&gt; List Integrations &#8211;&gt; Tracking &#8211;&gt; Setup Integration &#8211;&gt; Create new Tracking <\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a456dc2ed009&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a456dc2ed009\" 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--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" 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\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\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.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\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;6a456dc2ed473&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a456dc2ed473\" 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--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" 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\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\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.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\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-paragraph\">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;6a456dc2ed82f&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a456dc2ed82f\" 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--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" 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\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\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.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\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-paragraph\">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 will only be applied to 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. Also select a <strong>product feed<\/strong> to associate with the integration.  <\/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 online stores support unique basket IDs in the URL. Your online shop will generate a unique link to the lost cart, 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 customer&#8217;s cart.  <\/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 cart url<\/strong>: Here you insert the URL for the basket on your online shop. It will often be something like: <a href=\"http:\/\/www.dinwebshop.dk\/kurv\" target=\"_blank\" rel=\"noreferrer noopener\">www.dinwebshop.dk\/kurv<\/a> or <a href=\"http:\/\/www.webshop.dk\/basket\" target=\"_blank\" rel=\"noreferrer noopener\">www.webshop.dk\/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 setting to <strong>None.<\/strong> <br\/>If you have selected a <strong>Google Shopping Feed<\/strong>, select <strong>&gt; (Google product category)<\/strong>.  Find the right format in your product feed. <\/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 class=\"wp-block-paragraph\">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 the webshop<\/h2>\n\n<p class=\"wp-block-paragraph\">For tracking to work on your webshop, data must be sent to Heyloyalty. This is done by <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\">implementing a JavaScript<\/a> that sends tracking data to Heyloyalty. <\/p>\n\n<p class=\"wp-block-paragraph\">Implementation is often done by a developer or IT manager. You can find our <a href=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-documentation\" data-type=\"link\" data-id=\"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>When implementing the tracking script directly on the webshop, please ensure that the tracking script is only activated after the customer has accepted the marketing cookies.<br\/>Implementation and correct setup is the responsibility of the customer. Heyloyalty only provides the basic script. <\/p>\n\n<h3 class=\"wp-block-heading\">Implement tracking script on the webshop<\/h3>\n\n<p class=\"wp-block-paragraph\">You can find <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\">the tracking script here.<\/a> We recommend inserting the script on all pages of the webshop. Therefore, it often makes sense to place it in either <strong>the header<\/strong> or <strong>footer<\/strong>. <\/p>\n\n<p class=\"wp-block-paragraph\">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;6a456dc2ee4fd&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a456dc2ee4fd\" 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--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" 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\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\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.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\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<h2 class=\"wp-block-heading\">Step 3: Fire events from the right webshop sites<\/h2>\n\n<p class=\"wp-block-paragraph\">If your Heyloyalty integration does not automatically fire the triggers below, you can add them yourself on the webshop.<\/p>\n\n<p class=\"wp-block-paragraph\">If you can already see events in <strong>the Activity Feed<\/strong> in Heyloyalty, you can skip this section.<\/p>\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">To track which contacts perform the different actions on your website, you need to make sure that the contact is paired. When implementing tracking, you can add <em>the pairEmail event<\/em>on your own forms or use the extended script to ensure Heyloyalty forms pair customers instantly.<\/p>\n\n<p class=\"wp-block-paragraph\">You can read here how to use our <a href=\"https:\/\/documentation.heyloyalty.com\/tracking#section\/Tracking-script\/Example-for-pairEmail\">extended tracking script<\/a>, where the pairing is inserted in the script.<\/p>\n\n<p class=\"wp-block-paragraph\">We use a <strong>pair-on-click<\/strong> from every email or SMS sent from Heyloyalty. Every time a customer clicks and is directed to your website, <strong>the pairEmail event<\/strong> is automatically triggered. <\/p>\n\n<h2 class=\"wp-block-heading\">Setting up Tracking in connection with Multi-shop<\/h2>\n\n<p class=\"wp-block-paragraph\">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\">You are ready to use Tracking<\/h2>\n\n<p class=\"wp-block-paragraph\">You have now activated Tracking, implemented the script on your webshop and set up the list-level integration in Heyloyalty. This means that you can now track your members&#8217; behavior and use data such as visited categories, lost baskets and product interests actively in your email marketing. <\/p>\n\n<p class=\"wp-block-paragraph\">The next step is to start using the many <a href=\"https:\/\/guides.heyloyalty.com\/en\/help-category\/automationsflow\/\" data-type=\"link\" data-id=\"https:\/\/guides.heyloyalty.com\/help-category\/automationsflow\/\">tracking triggers<\/a>. They are used in our automation flow &#8211; for example, a <a href=\"https:\/\/guides.heyloyalty.com\/en\/help\/abandoned-basket\/\" data-type=\"link\" data-id=\"https:\/\/guides.heyloyalty.com\/help\/tabt-kurv\/\" target=\"_blank\" rel=\"noreferrer noopener\">lost basket flow<\/a> or a <a href=\"https:\/\/guides.heyloyalty.com\/en\/help\/category-interest\/\" data-type=\"link\" data-id=\"https:\/\/guides.heyloyalty.com\/help\/kategoriinteresse\/\">category interest automation<\/a> that sends relevant emails based on your customers&#8217; actual behavior. Have a great experience!  <\/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-f56f613f 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 class=\"wp-block-paragraph\"><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>Ready to give your email marketing a boost with Heyloyalty tracking? In this guide, we&#8217;ll walk you through what it takes to get started with tracking on your website. The value of tracking More personalized communicationTracking makes it possible to collect data about customer behavior on your online store so&#8230;<\/p>\n","protected":false},"author":6,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[93,79],"ht-kb-tag":[],"class_list":["post-927","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\/927","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/comments?post=927"}],"version-history":[{"count":9,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb\/927\/revisions"}],"predecessor-version":[{"id":4694,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb\/927\/revisions\/4694"}],"wp:attachment":[{"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/media?parent=927"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb-category?post=927"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}