Skip to main content

Jane

Ecommerce Event Tracking with Jane iframe

  1. Fill in the accountId and sourceId fields with your Surfside account ID and source ID respectively. These will be provided to you by your Surfside account manager.

  2. Add the code snippet below to the <head></head> section of your website website to enable web and ecommerce event tracking with Jane iframe.

<script>
(function() {
var surf = document.createElement('script');
surf.setAttribute('src','//cdn.surfside.io/sdk/1.0.0/wave.js');
surf.setAttribute('type','text/javascript');
surf.setAttribute('id','surfside');
surf.setAttribute('accountId','XXXXX');
surf.setAttribute('sourceId','XXXXX');
surf.setAttribute('platform','iheartjane');
var sync = document.createElement('img');
sync.setAttribute('src','//edge.surfside.io/id/uid?');
sync.setAttribute('height','1');
sync.setAttribute('width','1');
sync.setAttribute('display','none');
document.head.appendChild(surf,sync);
})();
</script>