{"id":1063,"date":"2026-01-16T09:26:13","date_gmt":"2026-01-16T08:26:13","guid":{"rendered":"https:\/\/heyloyalty.com\/support\/knowledge-base\/shopify\/"},"modified":"2026-04-23T08:55:16","modified_gmt":"2026-04-23T06:55:16","slug":"shopify","status":"publish","type":"ht_kb","link":"https:\/\/guides.heyloyalty.com\/en\/help\/shopify\/","title":{"rendered":"Shopify integration"},"content":{"rendered":"<div class=\"wp-block-post-date__modified-date wp-block-post-date\"><time datetime=\"2026-04-23T08:55:16+02:00\">23. April 2026<\/time><\/div>\n<h2 class=\"wp-block-heading\">The value of integration <\/h2>\n\n<p>Enhanced loyalty <br\/>Marketing automation and personalized messages enable webshops to engage visitors and customers with tailored content, creating a deeper connection and increased loyalty. <\/p>\n\n<p>Improved customer experience <br\/>By sending timely and relevant messages based on real-time data, online stores can improve the overall experience by offering valuable information, promotions, and offers that match customer interests and needs. <\/p>\n\n<p>Targeted communication <br\/>Advanced segmentation enables targeted communication, allowing webshops to reach specific target groups with personalized messages tailored to their demographics, preferences, and behavior. <\/p>\n\n<p>Churn Prediction and Prevention <br\/>Marketing automation tools help identify members at risk of churn by analyzing their engagement and visitor behavior and enable proactive strategies to retain them through targeted campaigns and incentives. <\/p>\n\n<p>Streamlined processes <br\/>By automating marketing processes and using personalized messages, webshops can streamline operations, save time and resources, and at the same time deliver relevant and impactful messages to their target audience. <\/p>\n\n<p>Turn your webshop visitors into loyal customers. With the 2-way integration between Heyloyalty and Shopify, you can create effective email marketing and marketing automation based on data from your webshop.  <\/p>\n\n<h2 class=\"wp-block-heading\">Before you begin<\/h2>\n\n<p>To make it easier for you, we recommend that you read the frequently asked questions and find the various documents, IDs, login information, etc. that you will need for the setup. See more below.  <\/p>\n\n<h3 class=\"wp-block-heading\">Frequently Asked Questions<\/h3>\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\">Do I need a developer? <\/mark> <br\/><\/strong>No. But if you&#8217;re unsure how to install an extension from the Shopify app, it might make sense to team up with a colleague.  <\/p>\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\">How long does it take to finish setting up the integration? <\/mark><br\/><\/strong>Five minutes and a few minutes of preparation to find the items from the list below first. <\/p>\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\">Does the integration retrieve backward data? <\/mark><br\/><\/strong>Yes, if you just click a single button during setup. <\/p>\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\">Do I need access to other systems?  <\/mark><br\/><\/strong>It&#8217;s easiest if you already have an active account with Heyloyalty. However, you can create a Heyloyalty account when setting up the integration. You will need your company name, first name, last name, email, phone number and company registration number to set up the integration. <em> <\/em> <\/p>\n\n<p>Which data is being imported? <br\/>Read the <a href=\"https:\/\/guides.heyloyalty.com\/en\/help\/shopify\/#felter-i-integrationen\">Fields in the integration<\/a> section at the bottom of this page for the full overview. <\/p>\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fc8d46\" class=\"has-inline-color\">Can I segment on data coming through the integration?  <\/mark><br\/><\/strong>Yes. Any data that comes through the integration can be used to segment your future communication. You can also use this data to start and stop your flows.   <\/p>\n\n<h3 class=\"wp-block-heading\" id=\"det-skal-du-bruge\">What you need to set up the integration <\/h3>\n\n<p>Do I need a developer? No  <\/p>\n\n<p>Can I set it up myself? Yes  <\/p>\n\n<p>You should have Heyloyalty and the Shopify shop open in separate tabs in your browser. In Heyloyalty, you&#8217;ll need the following  <\/p>\n\n<ul class=\"wp-block-list\">\n<li>If you have either <strong>Premium<\/strong> or <strong>Premium+<\/strong> license in Heyloyalty: <br\/>Tracking integration from the aforementioned list <br\/>If you have a Basic license, you can ignore this <\/li>\n<\/ul>\n\n<ul class=\"wp-block-list\">\n<li>API<strong> <\/strong>key<strong> <\/strong>(in<strong> Heyloyalty: Settings <\/strong>&#8211;&gt; <strong>Account information <\/strong>&#8211;&gt; <strong>API key<\/strong>) <\/li>\n<\/ul>\n\n<ul class=\"wp-block-list\">\n<li>API<strong> <\/strong>secret<strong> <\/strong>(in<strong> Heyloyalty: Settings <\/strong>&#8211;&gt; <strong>Account information <\/strong>&#8211;&gt; <strong>API secret<\/strong>) <\/li>\n<\/ul>\n\n<p>The integration operates via Shopify&#8217;s API and Heyloyalty&#8217;s tracking database. Read more about <a href=\"https:\/\/guides.heyloyalty.com\/en\/help\/tracking\/\" data-type=\"ht_kb\" data-id=\"401\" target=\"_blank\" rel=\"noreferrer noopener\">Tracking<\/a> here.  <\/p>\n\n<h2 class=\"wp-block-heading\">Setting up the integration <\/h2>\n\n<p>With the above preparation, you&#8217;re now ready to set up the integration between Shopify and Heyloyalty. <\/p>\n\n<h3 class=\"wp-block-heading\">Tracking (if your license is either Premium or Premium+)<\/h3>\n\n<p>Before you set up the integration to Shopify, you need to set up a tracking integration. You can read here how to set it up. In setting up the tracking integration, you need to choose which list tracking should be transferred to, since no list has been created from the integration yet, you should just use a temporary list. If you don&#8217;t have a list, you can read here how to create one.    <\/p>\n\n<p>Skip this step if you have a Basic license. <\/p>\n\n<p><br\/>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;6a07e39aadf09&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07e39aadf09\" class=\"wp-block-image size-large wp-lightbox-container\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"504\" 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:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/Opsaet-tracking-integration-1024x504.png\" alt=\"\" class=\"wp-image-803\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opsaet-tracking-integration-1024x504.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opsaet-tracking-integration-300x148.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opsaet-tracking-integration-768x378.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opsaet-tracking-integration-50x25.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opsaet-tracking-integration-1536x756.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opsaet-tracking-integration-60x30.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opsaet-tracking-integration-100x49.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Opsaet-tracking-integration.png 1954w\" 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>Fill in the fields. Make sure to link a <strong>product feed<\/strong>. <strong>The number of category visits <\/strong>and <strong>days visited<\/strong> are important to consider as they affect when a <a href=\"https:\/\/guides.heyloyalty.com\/en\/help\/category-interest\/\" data-type=\"ht_kb\" data-id=\"259\" target=\"_blank\" rel=\"noreferrer noopener\">category interest<\/a> will trigger. A rule of thumb \u2013 which may be more or less good depending on your guests&#8217; typical purchasing patterns and frequencies \u2013 is to set the Number of visits per category to three and the Number of days visits are over to seven. <\/p>\n\n<p>Session time should be a number, and it should be the same as in your script. Typically, we recommend 45 minutes, so if you follow that recommendation, you should write 45 in that field.  <\/p>\n\n<h3 class=\"wp-block-heading\">Setting up the integration <\/h3>\n\n<p>Find the Heyloyalty app in <strong>Shopify<\/strong>. Log into <strong>Shopify <\/strong>&#8211;&gt; <strong>Apps <\/strong>&#8211;&gt; <strong>Add apps<\/strong> &#8211;&gt; <strong>Explore more in Shopify App Store<\/strong> <\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a07e39aae4d2&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07e39aae4d2\" class=\"wp-block-image size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1024\" height=\"504\" 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:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app1-1024x504.png\" alt=\"\" class=\"wp-image-805\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app1-1024x504.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app1-300x148.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app1-768x378.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app1-50x25.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app1-1536x756.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app1-60x30.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app1-100x49.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app1.png 1954w\" 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<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a07e39aae888&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07e39aae888\" class=\"wp-block-image size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1024\" height=\"504\" 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:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app2-1024x504.png\" alt=\"\" class=\"wp-image-806\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app2-1024x504.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app2-300x148.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app2-768x378.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app2-50x25.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app2-1536x756.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app2-60x30.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app2-100x49.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Installer-app2.png 1954w\" 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>A new window opens. <\/p>\n\n<p>Search for Heyloyalty and click <strong>Install<\/strong>. A new window opens again and now click <strong>Install<\/strong>. <\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a07e39aaec39&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07e39aaec39\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" 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:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/Find-app-1024x504.png\" alt=\"\" class=\"wp-image-807\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Find-app-1024x504.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Find-app-300x148.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Find-app-768x378.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Find-app-50x25.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Find-app-1536x756.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Find-app-60x30.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Find-app-100x49.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Find-app.png 1954w\" 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<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a07e39aaef88&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07e39aaef88\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" 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:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstallere-app-1024x504.png\" alt=\"\" class=\"wp-image-808\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstallere-app-1024x504.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstallere-app-300x148.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstallere-app-768x378.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstallere-app-50x25.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstallere-app-1536x756.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstallere-app-60x30.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstallere-app-100x49.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstallere-app.png 1954w\" 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>A new window opens again. <\/p>\n\n<h4 class=\"wp-block-heading\">Do you already have an account with Heyloyalty? <\/h4>\n\n<p>You now need to consider whether you have an active account with Heyloyalty or not. <\/p>\n\n<h5 class=\"wp-block-heading\">You already have an account with Heyloyalty <\/h5>\n\n<p>Choose <strong>Click here to setup<\/strong> if you already have an active account. <\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a07e39aaf3f6&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07e39aaf3f6\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" 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:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/Connect-shopify-konto-1024x504.png\" alt=\"\" class=\"wp-image-809\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Connect-shopify-konto-1024x504.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Connect-shopify-konto-300x148.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Connect-shopify-konto-768x378.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Connect-shopify-konto-50x25.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Connect-shopify-konto-1536x756.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Connect-shopify-konto-60x30.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Connect-shopify-konto-100x49.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Connect-shopify-konto.png 1954w\" 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>Log in by clicking <strong>Click here to log in<\/strong> and log into Heyloyalty to find your API key and API secret \u2013 you should have found these beforehand under the section <strong><a href=\"https:\/\/guides.heyloyalty.com\/en\/help\/shopify\/#det-skal-du-bruge-til-at-saette-integrationen-op\" target=\"_blank\" rel=\"noreferrer noopener\">What you need to set up the integration<\/a><\/strong>. <\/p>\n\n<p>Fill in API Key and API Secret and finish with <strong>Save connection info<\/strong>. <\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a07e39aaf7ba&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07e39aaf7ba\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" 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:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-api-info-1024x504.png\" alt=\"\" class=\"wp-image-810\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-api-info-1024x504.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-api-info-300x148.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-api-info-768x378.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-api-info-50x25.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-api-info-1536x756.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-api-info-60x30.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-api-info-100x49.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-api-info.png 1954w\" 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>It&#8217;s now loading for a few seconds. When you see this message, you can click <strong>Close<\/strong>  <\/p>\n\n<p> <br\/>Then go to <a href=\"https:\/\/guides.heyloyalty.com\/en\/help\/shopify\/#aktiver-webhooks\" target=\"_blank\" rel=\"noreferrer noopener\">Activate webhooks<\/a>.<\/p>\n\n<h5 class=\"wp-block-heading\">You don&#8217;t have an account with Heyloyalty <\/h5>\n\n<p>If you don&#8217;t have an active account with Heyloyalty, then choose <strong>Create my account <\/strong>and fill in the fields: <\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a07e39aafd08&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07e39aafd08\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"486\" 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:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/1.6-Shopify-1024x486.png\" alt=\"\" class=\"wp-image-199\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/1.6-Shopify-1024x486.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/1.6-Shopify-300x142.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/1.6-Shopify-768x364.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/1.6-Shopify-50x24.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/1.6-Shopify-1536x729.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/1.6-Shopify-60x28.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/1.6-Shopify-100x47.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/1.6-Shopify.png 1920w\" 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<h5 class=\"wp-block-heading\" id=\"webhooks\"><strong>Activate webhooks <\/strong><\/h5>\n\n<p>You now need to activate webhooks by clicking the button <strong>Activate webhooks.<\/strong> <\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a07e39ab0151&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07e39ab0151\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" 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:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/Aktivere-webhook-1-1024x504.png\" alt=\"\" class=\"wp-image-814\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Aktivere-webhook-1-1024x504.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Aktivere-webhook-1-300x148.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Aktivere-webhook-1-768x378.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Aktivere-webhook-1-50x25.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Aktivere-webhook-1-1536x756.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Aktivere-webhook-1-60x30.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Aktivere-webhook-1-100x49.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Aktivere-webhook-1.png 1954w\" 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>After this, you should be able to see the message <strong>Shopify Webhooks is active<\/strong>. <\/p>\n\n<h4 class=\"wp-block-heading\">Importing historical data <\/h4>\n\n<p>To import historical data, simply click <strong>Import all data<\/strong>. <\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a07e39ab06d0&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07e39ab06d0\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" 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:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/Importere-bagudrettet-data-1024x504.png\" alt=\"\" class=\"wp-image-815\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Importere-bagudrettet-data-1024x504.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Importere-bagudrettet-data-300x148.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Importere-bagudrettet-data-768x378.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Importere-bagudrettet-data-50x25.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Importere-bagudrettet-data-1536x756.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Importere-bagudrettet-data-60x30.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Importere-bagudrettet-data-100x49.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Importere-bagudrettet-data.png 1954w\" 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>Depending on how much data you have in your webshop, it may take some time. However, the import is now in queue, and you can proceed to insert your tracking script.  <\/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 you can get from the box below doesn&#8217;t work. To insert the tracking script, you need to go to the section: <strong>Insert tracking script<\/strong> <\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a07e39ab13a2&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07e39ab13a2\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" 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:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/Hent-tracking-script-brug-ikke-1024x504.png\" alt=\"\" class=\"wp-image-827\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Hent-tracking-script-brug-ikke-1024x504.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Hent-tracking-script-brug-ikke-300x148.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Hent-tracking-script-brug-ikke-768x378.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Hent-tracking-script-brug-ikke-50x25.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Hent-tracking-script-brug-ikke-1536x756.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Hent-tracking-script-brug-ikke-60x30.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Hent-tracking-script-brug-ikke-100x49.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Hent-tracking-script-brug-ikke.png 1954w\" 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><\/p>\n\n<p><\/p>\n\n<h2 class=\"wp-block-heading\">Insert tracking script<\/h2>\n\n<p>For you to get data into Heyloyalty about which products your users visit, which products they add to cart, and which products they buy, you need to insert the following tracking script on your webshop.<\/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>: You need to insert <strong>APIkey<\/strong> and <strong>integrationId<\/strong>. You can copy the script and search for the two words. It&#8217;s <strong>XXXXX<\/strong> that needs to be replaced with the correct values.  <\/p>\n\n<p>APIKey can be found here in Heyloyalty: <br\/><strong>User menu \ud83d\udc64\u2699\ufe0f <\/strong>&#8211;&gt;  <strong>Account information<\/strong> &#8211;&gt; <strong>API information <\/strong>&#8211;&gt;  <strong>API key<\/strong><\/p>\n\n<p>Tracking id can be found here in Heyloyalty: <br\/><strong>Integrations <\/strong>&#8211;&gt;  <strong>List integrations<\/strong> &#8211;&gt;  <strong>Tracking <\/strong>&#8211;&gt;  <strong>Edit integration <\/strong>&#8211;&gt;  <strong>*Find your Tracking id in the fourth column*<\/strong> <\/p>\n\n<pre class=\"wp-block-code\"><code>(function () {\n    \/\/ Helper function to generate a unique ID\n    function generateUUID() {\n      return 'xxxxxxxx-xxxx-xxxx-yxxx-xxxxxxxxxxxx'.replace(\/&#91;xy]\/g, function (c) {\n        const r = (Math.random() * 16) | 0;\n        const v = c === 'x' ? r : (r &amp; 0x3) | 0x8;\n        return v.toString(16);\n      });\n    }\n  \n    \/\/ Helper function to get or set a cookie\n    function getOrSetCookie(name, value, minutes) {\n      const existingCookie = document.cookie.split('; ').find((row) =&gt; row.startsWith(name + '='));\n      if (existingCookie) {\n        return existingCookie.split('=')&#91;1];\n      }\n      if (value) {\n        const expires = new Date();\n        expires.setTime(expires.getTime() + minutes * 60 * 1000);\n        document.cookie = `${name}=${value}; expires=${expires.toUTCString()}; path=\/;`;\n        return value;\n      }\n      return null;\n    }\n  \n    \/\/ Generate or retrieve the CookieID (persistent for 1 year)\n    const HLcookieID = getOrSetCookie('HLcookieID', generateUUID(), 365 * 24 * 60); \/\/ 1 year in minutes\n  \n    \/\/ Generate or retrieve the SessionID (valid for 5 minutes)\n    const HLsessionID = getOrSetCookie('HLsessionID', generateUUID(), 45); \/\/ 45-minute lifetime\n  \n    \/\/ Log the IDs for debugging\n    \/\/console.log('HLCookieID:', HLcookieID);\n    \/\/console.log('HLSessionID:', HLsessionID);\n    const APIkey = \"<strong>XXXXXXXX<\/strong>\";\n    const integrationId = \"<strong>XXXXX<\/strong>\";\n  \n    \/\/ Example: Dispatch a custom Shopify event with the IDs\n    analytics.subscribe('page_viewed', () =&gt; {\n      const eventPayload = {\n        event_name: 'page_viewed',\n        HLsessionID: HLsessionID,\n        HLcookieID: HLcookieID,\n      };\n      \/\/console.log('Custom Page Viewed Event:', eventPayload);\n      \n  });\n  var productView = false;\n  analytics.subscribe(\"product_viewed\", event =&gt; {\n  \/\/ Example: Send this data to an external tracking service (optional)\n  const productId = event.data.productVariant.id;\n  const url = event.context.window.location.href;\n    productView = true;\n  protocol = \"https:\" == document.location.protocol ? \"https:\/\/\" : \"http:\/\/\",\n  source = protocol + 'tracking.heyloyalty.com\/' + \"visit\" + '\/' + APIkey + '?' + \"cookie=\" + HLcookieID + \"&amp;session=\" + HLsessionID + \"&amp;integrationId=\" + integrationId + \"&amp;productId=\" + productId + '&amp;url=' + url,\n  xhr = new XMLHttpRequest();\n  xhr.open('GET', source, true);\n  xhr.send();\n\n  if (url.indexOf(\"hlId=\")&gt;-1){\n    const queryString = window.location.search;\n    const urlParams = new URLSearchParams(url);\n    const email = urlParams.get('hlId')\n\n    protocol = \"https:\" == document.location.protocol ? \"https:\/\/\" : \"http:\/\/\",\n    source = protocol + 'tracking.heyloyalty.com\/' + \"pairEmail\" + '\/' + APIkey + '?' + \"cookie=\" + HLcookieID + \"&amp;session=\" + HLsessionID + \"&amp;integrationId=\" + integrationId + \"&amp;email=\" + email + '&amp;url=' + url,\n    xhr = new XMLHttpRequest();\n    xhr.open('GET', source, true);\n    xhr.send();\n  } \n\n});\n  \n\n\n  analytics.subscribe(\"page_viewed\", event =&gt; { \n    const url = event.context.window.location.href;\n    \/\/console.log(productView)\n  if(productView){\n    return\n  }\n\n  protocol = \"https:\" == document.location.protocol ? \"https:\/\/\" : \"http:\/\/\",\n  source = protocol + 'tracking.heyloyalty.com\/' + \"visit\" + '\/' + APIkey + '?' + \"cookie=\" + HLcookieID + \"&amp;session=\" + HLsessionID + \"&amp;integrationId=\" + integrationId + '&amp;url=' + url,\n  xhr = new XMLHttpRequest();\n  xhr.open('GET', source, true);\n  xhr.send();\n  console.log(\"side-set\");\n\n  if (url.indexOf(\"hlId=\")&gt;-1){\n    const queryString = window.location.search;\n    const urlParams = new URLSearchParams(url);\n    const email = urlParams.get('hlId')\n\n    protocol = \"https:\" == document.location.protocol ? \"https:\/\/\" : \"http:\/\/\",\n    source = protocol + 'tracking.heyloyalty.com\/' + \"pairEmail\" + '\/' + APIkey + '?' + \"cookie=\" + HLcookieID + \"&amp;session=\" + HLsessionID + \"&amp;integrationId=\" + integrationId + \"&amp;email=\" + email + '&amp;url=' + url,\n    xhr = new XMLHttpRequest();\n    xhr.open('GET', source, true);\n    xhr.send();\n  } \n\n});\n  \n  analytics.subscribe(\"product_added_to_cart\", event =&gt; { \n    const productId = event.data.cartLine?.merchandise.product.id;\n    const url = event.context.window.location.href;\n    const basketId = event.data.cartLine?.merchandise.id;\n    const itemAmount = event.data.cartLine?.quantity;\n    const categoryId = event.data.cartLine?.merchandise.product.type;\n  \n    protocol = \"https:\" == document.location.protocol ? \"https:\/\/\" : \"http:\/\/\",\n    source = protocol + 'tracking.heyloyalty.com\/' + \"addtobasket\" + '\/' + APIkey + '?' + \"cookie=\" + HLcookieID + \"&amp;session=\" + HLsessionID + \"&amp;integrationId=\" + integrationId + \"&amp;productId=\" + productId + \"&amp;amount=\" + itemAmount + \"&amp;categoryId=\" + \"&amp;basketId=\" + basketId + '&amp;url=' + url,\n    xhr = new XMLHttpRequest();\n    xhr.open('GET', source, true);\n    xhr.send();\n\n  });\n  \n  analytics.subscribe(\"product_removed_from_cart\", event =&gt; { \n    const productId = event.data.cartLine?.merchandise.product.id;\n    const url = event.context.window.location.href;\n    const basketId = event.data.cartLine?.merchandise.id;\n    const itemAmount = event.data.cartLine?.cost.totalAmount.amount;\n    const categoryId = event.data.cartLine?.merchandise.product.type;\n    \n    protocol = \"https:\" == document.location.protocol ? \"https:\/\/\" : \"http:\/\/\",\n    source = protocol + 'tracking.heyloyalty.com\/' + \"removefrombasket\" + '\/' + APIkey + '?' + \"cookie=\" + HLcookieID + \"&amp;session=\" + HLsessionID + \"&amp;integrationId=\" + integrationId + \"&amp;productId=\" + productId,\n    xhr = new XMLHttpRequest();\n    xhr.open('GET', source, true);\n    xhr.send();\n\n  });\n  \n  analytics.subscribe(\"checkout_completed\", event =&gt; { \n    const basketAmount = event.data.checkout.subtotalPrice?.amount;\n    const url = event.context.window.location.href;\n    const basketId = event.data.checkout.order?.id;\n    \n    protocol = \"https:\" == document.location.protocol ? \"https:\/\/\" : \"http:\/\/\",\n    source = protocol + 'tracking.heyloyalty.com\/' + \"purchasebasket\" + '\/' + APIkey + '?' + \"cookie=\" + HLcookieID + \"&amp;session=\" + HLsessionID + \"&amp;integrationId=\" + integrationId + \"&amp;basketPrice=\" + basketAmount + \"&amp;order_number=\" + basketId + '&amp;url=' + url,\n    xhr = new XMLHttpRequest();\n    xhr.open('GET', source, true);\n    xhr.send();\n\n  });\n    \n  })();\n\n<\/code><\/pre>\n\n<p>When you&#8217;ve inserted APIkey and IntegrationId, you&#8217;re now ready to insert the script on your Shopify shop. You insert the script by going to your Shopify shop and then settings: <\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a07e39ab1978&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07e39ab1978\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" 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:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstillinger-script-1024x504.png\" alt=\"\" class=\"wp-image-818\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstillinger-script-1024x504.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstillinger-script-300x148.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstillinger-script-768x378.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstillinger-script-50x25.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstillinger-script-1536x756.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstillinger-script-60x30.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstillinger-script-100x49.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indstillinger-script.png 1954w\" 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>Then you need to go to <strong>Customer events &#8211;&gt; More views &#8211;&gt; Custom pixels<\/strong> and then click <strong>Add custom pixel<\/strong>:<\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a07e39ab1c1d&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07e39ab1c1d\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" 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:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilpasset-pixels-1024x504.png\" alt=\"\" class=\"wp-image-819\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilpasset-pixels-1024x504.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilpasset-pixels-300x148.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilpasset-pixels-768x378.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilpasset-pixels-50x25.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilpasset-pixels-1536x756.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilpasset-pixels-60x30.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilpasset-pixels-100x49.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilpasset-pixels.png 1954w\" 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>Then you name your pixel. We recommend calling it <strong>Tracking Heyloyalty<\/strong> and then click <strong>Add pixel.<\/strong> <\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a07e39ab1ed7&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07e39ab1ed7\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" 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:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/Navngiv-pixel-1024x504.png\" alt=\"\" class=\"wp-image-820\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Navngiv-pixel-1024x504.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Navngiv-pixel-300x148.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Navngiv-pixel-768x378.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Navngiv-pixel-50x25.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Navngiv-pixel-1536x756.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Navngiv-pixel-60x30.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Navngiv-pixel-100x49.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Navngiv-pixel.png 1954w\" 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>On this page, you can insert your tracking script under the field <strong>code<\/strong>:<\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a07e39ab216e&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07e39ab216e\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" 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:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-tracking-script-1024x504.png\" alt=\"\" class=\"wp-image-821\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-tracking-script-1024x504.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-tracking-script-300x148.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-tracking-script-768x378.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-tracking-script-50x25.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-tracking-script-1536x756.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-tracking-script-60x30.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-tracking-script-100x49.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Indsaet-tracking-script.png 1954w\" 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>When the script is inserted, you can save the script. When you&#8217;ve clicked <strong>save<\/strong>, you&#8217;ll subsequently be able to click <strong>Connect<\/strong>: <\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a07e39ab2428&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07e39ab2428\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" 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:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilslut-script-1024x504.png\" alt=\"\" class=\"wp-image-822\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilslut-script-1024x504.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilslut-script-300x148.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilslut-script-768x378.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilslut-script-50x25.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilslut-script-1536x756.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilslut-script-60x30.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilslut-script-100x49.png 100w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/Tilslut-script.png 1954w\" 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>After the script is connected, you need to insert the newly created list from the integration on your tracking integration. You do this by going to: <strong>Integrations <\/strong>&#8211;&gt; <strong>List integrations <\/strong>&#8211;&gt; <strong>Tracking <\/strong>&#8211;&gt; <strong>Set up integration <\/strong>&#8211;&gt; <strong>Create new Tracking<\/strong>  <\/p>\n\n<p>When the list is changed, you can check if events are coming in from your webshop. You can see this under the activity feed, which you can find here: <strong>statistics &gt; activity feed.<\/strong>  <\/p>\n\n<h2 class=\"wp-block-heading\">Products in your campaigns <\/h2>\n\n<p>To insert your products into your campaigns, you need a Shopify app that can generate a product feed. You may already have an app for this \u2013 if not, you can ask your web agency.  <\/p>\n\n<p>Alternatively, there&#8217;s a free module available here: <a href=\"https:\/\/apps.shopify.com\/product-feeds-generator\">https:\/\/apps.shopify.com\/product-feeds-generator<\/a>. Here you can generate a product feed. <\/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> Heyloyalty supports the following feed types: XML, Json, Csv, FTP\/SFTP, Zip csv and Open Graph<\/p>\n\n<p>When you&#8217;ve generated your product feed, you can set up the feed in Heyloyalty. You can read here how to set up your feed. <\/p>\n\n<h2 class=\"wp-block-heading\">General information about integration <\/h2>\n\n<h3 class=\"wp-block-heading\">Worth knowing about the integration <\/h3>\n\n<p>When the integration is set up, you can retrieve all historical purchase data with a single click. <\/p>\n\n<p>Heyloyalty<strong> <\/strong>creates<strong> <\/strong>a contact when a contact is created in Shopify who has said yes to receiving the newsletter. <\/p>\n\n<ul class=\"wp-block-list\">\n<li>The contact is automatically updated in the Tracking database. This means that you can, among other things, segment on whether the contacts in Heyloyalty have purchased within the last seven days or not, have purchased for more than a given amount or have purchased more than a certain number of times, to name just a few of your options.  <\/li>\n<\/ul>\n\n<ul class=\"wp-block-list\">\n<li>Data is tracked on unknown members, and when an unknown member subscribes to the newsletter, Heyloyalty automatically makes a retroactive pairing of all this person&#8217;s data, so you get the complete history when a member subscribes to the newsletter <\/li>\n<\/ul>\n\n<h3 class=\"wp-block-heading\" id=\"felter\">Fields in the integration<\/h3>\n\n<p>If you want a complete overview of the fields in the integration, you can see it in the fields in the list you have connected the integration to. <\/p>\n\n<p><strong>Lists <\/strong>&#8211;&gt; \u22ee &#8211;&gt; <strong>Edit list<\/strong>. Scroll down to the bottom and see all the custom fields that are listed and that you have mapped as part of the 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>The value of integration Enhanced loyalty Marketing automation and personalized messages enable webshops to engage visitors and customers with tailored content, creating a deeper connection and increased loyalty. Improved customer experience By sending timely and relevant messages based on real-time data, online stores can improve the overall experience by offering&#8230;<\/p>\n","protected":false},"author":6,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[73],"ht-kb-tag":[],"class_list":["post-1063","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-integrations-and-api"],"_links":{"self":[{"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb\/1063","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=1063"}],"version-history":[{"count":10,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb\/1063\/revisions"}],"predecessor-version":[{"id":4153,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb\/1063\/revisions\/4153"}],"wp:attachment":[{"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/media?parent=1063"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb-category?post=1063"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=1063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}