To start tracking with the InnerTrends JavaScript library, just paste the following code into the page you want to track just before the </body> tag.

<script type="text/javascript">
(function(w,o,d,s) { 
w['_itlk']="YOUR_INNERTRENDS_TOKEN";
w['_itlt']=[]; w['_itlq']=[];w['_itld']=s;w[o]=w[o]||{log:function(t,v,p){w['_itlt'].push([t,v,p])},stream:function(q){w['_itlq'].push([q])}};
var pa = d.createElement('script'), ae = d.getElementsByTagName('script')[0], protocol = (('https:' == d.location.protocol) ? 'https://' : 'http://');pa.async = 1;  pa.src = protocol + 'io.innertrends.com/itl.js'; pa.type = 'text/javascript'; ae.parentNode.insertBefore(pa, ae);
})(window,'_itl',document,"");
</script>

Make sure to change ‘YOUR_INNERTRENDS_TOKEN’ to your project token. You can find your account token inside your InnerTrends account settings section.

Will InnerTrends impact page loading speed?

The InnerTrends code loads asynchronous and is designed to have no impact on your app loading speed. In fact you’ll see that Google Page Speed tool reports the maximum score for a page that has our tracking code on.

tracking-code-100

How do I know if it has been installed?

Simply checking your Network console in your browser and seeing the itl.js file loaded means that the job was done:

code-loaded

What user actions is InnerTrends tracking?

By default, the code you add to the website, depending on your application setup, tracks very little or no activity at all.

Once on your app, the tracking manager can be initiated and user actions can be deployed either by your InnerTrends designated web analyst or directly by anyone with access to the InnerTrends account.

Will I be required to customize the above code?

There are no customization options for the InnerTrends code. However, in rare cases when they are not already available, we might need access to some extra global variables.

The only requirement of InnerTrends is to be able to identify the user that is visiting your website, ideally by an email address. This information can be in a cookie, a javascript variable that is accessible on the whole website or directly in the DOM.

Having access to the timestamp of the date when the user inside your app created his account will allow InnerTrends to get very high accuracy on user onboarding reporting.

Leave a Reply

Your email address will not be published. Required fields are marked *