AIQ Ecommerce
Ecommerce Event Tracking
Note: Please do not follow the legacy instructions provided by AIQ here. Instead, follow the instructions below to enable web and ecommerce event tracking with AIQ.
Follow the AIQ Google Tag Manager (GTM) Guide
- Navigate to the Google Tag Manager AIQ Guide and follow the instructions provided to enable GTM on your website.
Note: If you have difficulty enabling GTM on your website, please reach out to your Surfside account manager for assistance.
- Once that is complete, please provide
adops@surfside.io
with Publish access to your Google Tag Manager Container. This will allow us to add the Surfside Pixel to your website.
For clarity, the Surfside Pixel code snippet that will be added to your website is provided below:
<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'); // Fill in with your Surfside account ID
surf.setAttribute('sourceId','XXXXX'); //Fill in with your Surfside source ID
surf.setAttribute('platform','ga4');
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>