Tracking events - Js Library

The JavaScript (JS) library serves two primary purposes within our system:

Please take note of the following:

What events are being captured using js library?

        1. eventCreatedAt
        2. anonymous_id
        3. crm_id
        4. event_name
        5. org_id
        6. page_title
        7. proposition_id
        8. source

        1. eventCreatedAt
        2. anonymous_id
        3. article_id
        4. crm_id
        5. event_name
        6. org_id
        7. page_title
        8. proposition_id
        9. source
        1. eventCreatedAt
        2. anonymous_id
        3. crm_id
        4. currency
        5. event_name
        6. order_id
        7. order_value
        8. org_id
        9. page_title
        10. source

        1. eventCreatedAt
        2. anonymous_id
        3. crm_id
        4. event_name
        5. org_id
        6. page_title
        7. source

JS Tracking Library

<h1>Tracking script test page</h1><input id="pageView" type="button" value="Page view" /><br><input id="clickOnRecommendation" type="button" value="Page view" /><br><input id="addToCart" type="button" value="Page view" />

<button onClick="trackEvent()">    Track Click  </button>
  <button onClick="pageView()">    custom method  </button>
  <button onClick="identifyVisitor()">    Identify visitor  </button>
  <br/>

  <script type="text/javascript">    function trackEvent() {        Analytics.track('buttonClicked')    }    function pageView() {        //Analytics.page()        Analytics.plugins.zapyanCI.addToCart();            }    function identifyVisitor() {        Analytics.identify('user-123', {        pro: true,      })    }  </script>

 Tips

Still need help?

Please contact our professional support team if you require further assistance