Select Page

Heycommerce integration

Sådan opsætter du Heycommerce integrationen.

Step-by-step guide

Dokumentation

<script type="text/javascript" language="javascript">
 var hlt;
 var BiTrackingLoaded = function (BiTracking) {
 hlt=BiTracking;
 BiTracking.initialize('INSERTAPIKEYHERE', INSERTSESSIONTIMEHERE, 'INSERTTRACKINGID');
 }
</script>
<script>
 (function (d, t) {
 var g = d.createElement(t),
 s = d.getElementsByTagName(t)[0];
 h = "https:" == document.location.protocol ? "https://" : "http://";
 g.src = h + 'bi.heyloyalty.com/hlbi.js';
 s.parentNode.insertBefore(g, s);
 }
 (document, 'script'));
</script>
<script type="text/javascript" language="javascript">
 var hlt;
 var BiTrackingLoaded = function (BiTracking) {
 hlt=BiTracking;
 BiTracking.initialize('INSERTAPIKEYHERE', INSERTSESSIONTIMEHERE, INSERTINTEGRATIONIDHERE);
 hlt.visit("PRODUCTID”,"CATEGORYID","CATEGORYNAME") }
</script>
<script>
 (function (d, t) {
 var g = d.createElement(t),
 s = d.getElementsByTagName(t)[0];
 h = "https:" == document.location.protocol ? "https://" : "http://";
 g.src = h + 'tracking.heycommerce.dk/hlbi.js';
 s.parentNode.insertBefore(g, s);
 }
 (document, 'script'));
</script>
<script type="text/javascript" language="javascript">
 var hlt;
 var BiTrackingLoaded = function (BiTracking) {
 hlt=BiTracking;
 BiTracking.initialize('INSERTAPIKEYHERE', INSERTSESSIONTIMEHERE, INSERTINTEGRATIONIDHERE);
 hlt.addToBasket("PRODUCTID","AMOUNT","CATEGORYID","BASKEID","CATEGORYNAME") }
</script>
<script>
 (function (d, t) {
 var g = d.createElement(t),
 s = d.getElementsByTagName(t)[0];
 h = "https:" == document.location.protocol ? "https://" : "http://";
 g.src = h + 'tracking.heycommerce.dk/hlbi.js';
 s.parentNode.insertBefore(g, s);
 }
 (document, 'script'));
</script>
<script type="text/javascript" language="javascript">
var hlt;
var BiTrackingLoaded = function (BiTracking) {
hlt=BiTracking;
BiTracking.initialize('INSERTAPIKEYHERE', INSERTSESSIONTIMEHERE, INSERTINTEGRATIONIDHERE);
hlt.purchasedBasket("BASKETPRICE","ORDERNUMBER"}
</script>
<script>
(function (d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
h = "https:" == document.location.protocol ? "https://" : "http://";
g.src = h + 'tracking.heycommerce.dk/hlbi.js';
s.parentNode.insertBefore(g, s);
}
(document, 'script'));
</script>
<script>
  var currentDomain = window.location.hostname;
    switch(currentDomain) {
    case 'webshopno1':
      trackingId = 'integrationID1';
      break;
    case 'webshopno2':
      trackingId = 'integrationID2';
      break;
    case 'webshopno3':
      trackingId = 'integrationID3';
      break;
    default:
      trackingId = 'integrationID1'
   }
</script>
<script type="text/javascript" language="javascript">
  var hlt;
  var BiTrackingLoaded = function (BiTracking) {
  hlt=BiTracking;
    BiTracking.initialize('INSERTAPIKEYHERE', INSERTSESSIONTIMEHERE, String(trackingId));
    hlt.visit("PRODUCTID”,"CATEGORYID","CATEGORYNAME") }
</script>
<script>
  (function (d, t) {
  var g = d.createElement(t),
  s = d.getElementsByTagName(t)[0];
  h = "https:" == document.location.protocol ? "https://" : "http://";
  g.src = h + 'tracking.heycommerce.dk/hlbi.js';
  s.parentNode.insertBefore(g, s);
  }
  (document, 'script'));
</script>