{"id":935,"date":"2026-01-16T13:41:28","date_gmt":"2026-01-16T12:41:28","guid":{"rendered":"https:\/\/heyloyalty.com\/support\/knowledge-base\/onsite-campaign\/"},"modified":"2026-03-31T14:02:15","modified_gmt":"2026-03-31T12:02:15","slug":"onsite-campaign","status":"publish","type":"ht_kb","link":"https:\/\/guides.heyloyalty.com\/en\/help\/onsite-campaign\/","title":{"rendered":"Ops\u00e6t Onsite Campaigns"},"content":{"rendered":"<div class=\"wp-block-post-date__modified-date wp-block-post-date\"><time datetime=\"2026-03-31T14:02:15+02:00\">31. March 2026<\/time><\/div>\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><strong>Onsite Campaign: What is it and what does it require?&nbsp;<br><\/strong><br><strong>Onsite Campaigns<\/strong> is an addon in Heyloyalty.&nbsp;&nbsp;<br><br>&#8211; Save time and money by bringing multiple marketing activities together in one platform.&nbsp;&nbsp;<br>&#8211; Acquire new customers with pop-ups, landing pages, and sticky bars.&nbsp;&nbsp;<br>&#8211; Get more sign-ups for your newsletter and\/or your customer club.&nbsp;&nbsp;<br>Give yourself the opportunity to communicate to your guests and customers.&nbsp;&nbsp;<br><br>To succeed with marketing automation, it\u2019s essential that you have recipients on your list(s). Pop-ups are a great way to get more people to sign up for your communications. &nbsp;<\/p>\n\n<h2 class=\"wp-block-heading\">Setting up the Onsite Campaign integration <\/h2>\n\n<p>Setup Onsite Campaign by clicking Integrations &#8211;&gt; List Integrations &#8211;&gt; Onsite Campaign &#8211;&gt; Setup Integration &#8211;&gt; Create New Onsite Campaign <\/p>\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a07ed82746c8&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a07ed82746c8\" class=\"wp-block-image size-full wp-lightbox-container\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1920\" height=\"911\" 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.1-Onsite-Campaign.png\" alt=\"\" class=\"wp-image-406\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/1.1-Onsite-Campaign.png 1920w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/1.1-Onsite-Campaign-300x142.png 300w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/1.1-Onsite-Campaign-1024x486.png 1024w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/1.1-Onsite-Campaign-768x364.png 768w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/1.1-Onsite-Campaign-50x24.png 50w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/1.1-Onsite-Campaign-1536x729.png 1536w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/1.1-Onsite-Campaign-60x28.png 60w, https:\/\/guides.heyloyalty.com\/wp-content\/uploads\/sites\/2\/2026\/01\/1.1-Onsite-Campaign-100x47.png 100w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><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 fill in Domain as your domain \u2013 i.e. without and https:\/\/ and without www. <\/p>\n\n<p>Finish with Save integration. <\/p>\n\n<h2 class=\"wp-block-heading\">Implementing the Onsite Campaign script <\/h2>\n\n<p><strong>Integrations <\/strong>&#8211;&gt; <strong>List integrations <\/strong>&#8211;&gt; <strong>Onsite Campaign <\/strong>&#8211;&gt; <strong>Edit integration <\/strong>&#8211;&gt; <strong>\u205d <\/strong>&#8211;&gt; <strong>Installation guide. <\/strong>You can now choose between <strong>Copy both scripts<\/strong> or <strong>Copy script to GTM<\/strong>, where the latter is a script that only works if you deploy the script in GTM (Google Tag Manager). Alternatively, select <strong>Copy both scripts <\/strong>and paste them into your site.   <br\/><\/p>\n\n<p>Typically, both scripts are inserted in the footer. This way, the script will be available on all pages, which means that Onsite Campaigns can also be displayed on your entire website. However, if you only want an Onsite Campaign to appear on selected pages, you can choose to implement scripts only on those specific pages.  <br\/><br\/>Where exactly you implement this on your site, <strong>Heyloyalty<\/strong> cannot advise, as it depends on the CMS you have, but must be inserted in a location that can handle Java scripts.<\/p>\n\n<h2 class=\"wp-block-heading\">Next.js &#8211; Onsite Campaign<\/h2>\n\n<p>If your website uses <strong>Next.js<\/strong>, <strong>the Onsite Campaign script<\/strong> will not automatically load on new page views. This is because Next.js often works as a <strong>single-page application<\/strong> where the page is not fully reloaded when navigating between different subpages. This means that <strong>Onsite Campaign<\/strong> is not displayed on the website.  <\/p>\n\n<p>To ensure that Onsite Campaigns work correctly in a Next.js setup, it is necessary to implement some specific code elements on your website. You can read here what needs to be added to your website for Onsite Campaign to appear. <\/p>\n\n<p>In this guide, we go through what needs to be set up and <a href=\"https:\/\/heyloyalty.com\/support\/wp-content\/uploads\/sites\/2\/2026\/03\/Next.js-guide-%E2%80%93-Onsite-Campaign.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">how to implement the solution correctly.<\/a><\/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 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>Setting up the Onsite Campaign integration Setup Onsite Campaign by clicking Integrations &#8211;&gt; List Integrations &#8211;&gt; Onsite Campaign &#8211;&gt; Setup Integration &#8211;&gt; Create New Onsite Campaign Fill in the fields. Make sure to fill in Domain as your domain \u2013 i.e. without and https:\/\/ and without www. Finish with Save&#8230;<\/p>\n","protected":false},"author":6,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[77,83,74],"ht-kb-tag":[],"class_list":["post-935","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-onsite-campaing","ht_kb_category-onsite-campaigns","ht_kb_category-addon-til-heyloyalty"],"_links":{"self":[{"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb\/935","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=935"}],"version-history":[{"count":4,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb\/935\/revisions"}],"predecessor-version":[{"id":3615,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb\/935\/revisions\/3615"}],"wp:attachment":[{"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/media?parent=935"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb-category?post=935"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/guides.heyloyalty.com\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}