How to connect Insightarc to your webite

To install the Insightarc to your site, copy the following code and paste it immediately after the </head> tag on every page of your site. Replace API_KEY with the API key of the project to which you want to send data. Placing the connector directly on the website, not the GTM, helps avoid lost tracking if the visitor is using an adblocker.

You need only one global snippet per page.

<!-- Global site tag - InsightArc connector -->
<script async src="https://www.insightarc.com/js/iarc.js"></script>
<script>
  window.iArcConfig = {
    "apiKey": "API_KEY",
  }
</script>

This snippet loads the iarc-clickstream.js library establishes API_KEY and connects Insightarc analytics to your site.

IF YOU JOINED TO THE PROPELLER ADS PROGRAM - use the connector below

  (function () {
    var a = document.createElement('script');
    a.src = 'https://www.insightarc.com/js/iarc.js';
    a.async = !0;
    document.head.appendChild(a);
  })();
  window.iArcConfig = {
    apiKey: 'YOUR_API_KEY',
    userId: function () {
      return fetch('https://my.rtmark.net/gid.js', { credentials: 'include' })
        .then(function (r) { return r.json() })
        .then(function (r) { return r.gid })
        .catch(function (e) {
          console.error(e);
        });
    },
  };
</script>