Enabling Tezify for your Site

You can enable Tezify for your site by embedding the Tezify Javascript tracking snippet into every webpage that you intend to track. This is very similar to what you would do to enable Google Analytics tracking for your site. But, before adding the tracking snippet, you need to sign up to get your unique Site ID. Tezify uses this Site ID to recognize your site. It needs to be part of your Javascript tracking snippet.

The JavaScript tracking snippet

You need to add the following code snippet to every page of your website that you intend to track. You can add it directly to webpages or to your website's templates. The code should appear near to the top of tag of your HTML page - before other script or CSS styling code.

Make sure you replace the SITE_ID in the below snippet with your 16-digit Site Key. Your site visits cannot be tracked otherwise. Also, a single SITE_ID cannot be used for more than one domains.

  window.webmonTimingObject = 'wto';
  if (!('wto' in window)){
    window.wto = function(){
      window.wto.q.push([(new Date()).getTime(), arguments]);
    window.wto.q = [];
	window.wto.l = (new Date()).getTime();
	window.wto.siteId = "SITE_ID";
	var script   = document.createElement('script');
	script.src   = \"//cdn.tezify.com/speed/beacon.min.js\";
	script.async = true;
	var firstScript = document.getElementsByTagName('script')[0];
	firstScript.parentNode.insertBefore(script, firstScript);

What the default tracking snippet does?

The above code downloads and initializes the tezify.js library so that Tezify can track speed your visitors' speed experience. This javascript file is downloaded asynchronously to avoid any impact to your site's speed. Once downloaded, the HTTP requests made by tezify.js are also fired asynchronously to avoid causing the observer effect.

Tezify tracks specific speed measures, conversion events and visitor attributes out-of-the-box. These are detailed here.

What the default tracking snippet doesn't do?

Tezify can capture custom speed measures, visitor attributes and conversions events. It also allows changing certain measures (for example - adjusting session length). These configurations require adding specific lines to the tracking snippet: