Deploying the Convizit Tag

To get started using Convizit, you need to place the Convizit tag (the following snippet of JavaScript code) at the beginning of the <head>...</head> section of every page of your website. You can do so using a tag manager (such as Google Tag Manager or Tealium), or your webmaster can add it to the appropriate files manually.

				
					<!--Convizit Tag Start-->
<script type="text/javascript">
   !function(e,t,i,n,r,o){function c(){return(new Date).getTime()}function a(t){i[e][p]&&i[e][p][b](t)}function s(t,e){return function(){t(arguments[0],this),e.apply(this,arguments)}}function f(t,e){t[d]||Object.defineProperty(t,d,{value:[]}),t[d][b](e)}function u(t,e){e&&t&&f(e,t)}var h="event",p=h+"s",l="__",d=l+p+l,v="addEventListener",y="length",m="jQuery",w="mousedown",b="push",g=function(t,e,n){return i[m]?n():e<=0?null:void setTimeout(function(){g(t,e-t,n)},t)};try{if(i[e])throw new Error("twice");i[e]=i[e]||[],i[e].siteToken=o,i[e].config=r,i[e].start=c();var j=(new Date).toLocaleDateString(),_=r.forceSSL||"https:"===n.location.protocol,E=n.createElement(t);E.type="text/java"+t,E.async=!0,E.src="http"+(_?"s":"")+"://cdn.convizit.com/convizit.min.js?id="+o+"&t="+j;var N,T,z=n.getElementsByTagName(t)[0];z.parentNode.insertBefore(E,z),i[e][p]=[],Object.defineProperty(i[e][p],"setCB",{value:function(t){return this.cb=t}}),Object.defineProperty(i[e][p],b,{value:function(){for(var t=0,e=this[y],n=arguments[y];t<n;t++,e++)arguments[t].__timestamp__=c(),this.cb?this.cb(arguments[t]):this[e]=arguments[t];for(var i=0,r=this[y]-1e3;i<r;i++)this.shift();return this[y]}});var B;n[v](w,a,!0),N=i[v],T=Node.prototype[v],i[v]=s(u,N),Node.prototype[v]=s(u,T),g(25,4e3,function(){var o;o=a,i[m]&&i[m][h]&&(B=i[m][h].add,i[m][h].add=function(t,e,n,i,r){if(!r)return B.call(this,t,e,n,i,r);if("function"!=typeof n)return B.call(this,t,e,n,i,r);return B.call(this,t,e,function(){return this&&(f(this,e),e!==w&&o.apply(this,arguments)),n.apply(this,arguments)},i,r)})});for(var D=["set","get","track","onEvent","identify"],L=0;L<D[y];L++)i[e][D[L]]=function(t,e){return function(){1e3<=t[y]&&t.shift(),t[b]([e].concat(Array.prototype.slice.call(arguments,0)).concat(c()))}}(i[e],D[L])}catch(t){i[e].err=t}}("convizit","script",window,document,{},"your_site_token");
</script>
<!--Convizit Tag End-->
				
			

Notes:

  • You must replace your_site_token in the code (you’ll find this right at the end of the middle line of code snippet) with the token assigned to your website. You will receive this token when your account is activated.
  • If you are deploying the Convizit tag using Google Tag Manager, it is important to place the Convizit snippet with a high “tag firing priority.” Setting the highest priority is recommended (because this will ensure that all user activity and on-page context data is captured), but it should certainly be one of the top three highest-priority tags. You can set this in Tag firing options > Once per page > Trigger configuration > Trigger -> All Pages – Page View (if this doesn’t already appear, click + at the top right for Add a Trigger -> Page View). Do not use the DOM ready or Window Loaded options.
  • To learn about which on-page elements are automatically not captured due to data privacy concerns, and about how to manually prevent Convizit from capturing specific elements, see Ensuring Data Privacy.
  • In addition to tracking user activity anonymously, you may also place additional JavaScript code that associates your customer IDs with known visitors. When doing so, you may optionally include any number of additional data fields that Convizit will save along with each customer. This may make it easier to consume the user activity data available supplied by Convizit in your own systems. For information about using these functions, see Customer Identification and Enrichment.
This website uses cookies. Cookies remember you so we can give you a better online experience. Learn more.