main-script

This is javascript (insight.js) which has included functions for event tracking.

This is pixel code tag (which is placed in all pages) is used to track pageview (#1) of all page and is a required component to track other events. Add it to Header for all of the pages of website similar to GA , Facebook pixel.

Default code load will automation track page view event and context properties.

<!-- ANTSOMI SDK Analytics script -->
<script type = "text/javascript" >
   var _portalId = "PORTAL_ID"; // Your Portal ID 
   var _propId = "PROPERTY_ID"; // Your Website Property ID
   var _CDP_DELIVERY_TRIGGER=true;
   var _CDP_GA_ACCOUNT_TRACKING_ID = "G-XXXXXX"; // This param is optional. 
(function() {
    var w = window;
    if (w.web_event) return;
    var a = window.web_event = function() {
        a.queue.push(arguments);
    }
    a.propId = _propId;
    a.track = a;
    a.queue = [];
    var e = document.createElement("script");
    e.type = "text/javascript", e.async = !0, e.src = "//st-a.cdp.asia/insight.js";
    var t = document.getElementsByTagName("script")[0];
    t.parentNode.insertBefore(e, t)
})(); </script>
<!-- End of ANTSOMI SDK Analytics script -->

Notes (*)

var _CDP_GA_ACCOUNT_TRACKING_ID = "G-XXXXXX";  
This param is your tracking ID or Measurement ID or Tag ID of the GA account that you want to collect GA's User ID

Where's the GA Account Tracking ID or Measurement ID or Tag ID ? 
You can find it in Admin of GA.

Or in Google Tag Manager

Last updated

Was this helpful?