Adding tracker

To start tracking with the Dripit JavaScript library, just paste the following code into the page you want to track inside the <head> and </head> tags.

<!-- start Dripit -->
(function(t){(function(t,i,e,n,r,o){t[e]=t[e]||function(){(t[e].q=t[e].q||[]).push(arguments)};t.DripitGlobalObject=t[e];t.DripitGlobalObject.obj=e;var c=function(i){return function(){t.DripitGlobalObject(i,arguments)}};"page");t.DripitGlobalObject.identify=c("identify");t.DripitGlobalObject.track=c("track");t[e].t=1*new Date;t[e].k=r;t[e].e=o;var a=i.createElement("script");a.async=1;a.src=n;var l=i.getElementsByTagName("script")[0];l.parentNode.insertBefore(a,l);})(window,document,"dripit","",t,"")})
<!-- end Dripit -->

or add it to your Google tag manager with Trigger "All pages".

Make sure to set "YOUR TOKEN"! It can be found at Dripit integration page in your profile.

The snippet will load Dripit library onto the page asynchronously to keep your website loading quickly even if placed towards end of the page.

The snippet provides a global variable named dripit that you can use to send data to the Dripit API

NOTE: We highly recommend including the code at the beginning of the <head> tag, especially if your website contains lots of content and/or different tracking scripts, so it is loaded as quickly as possible. This is because failing to load Dripit script for the first page view of some sessions might decrease the accuracy of results, since the very first page view is the one that determines the acquisition channel of a visitor.

results matching ""

    No results matching ""