Have a question?

Shopify Installation

  1. Sign in to your Shopify Dashboard
  2. Click on Themes in the Your Website Section of the left sidebar
  3. Click on Template Editor
  4. Select “theme.liquid” toward the top of the files sidebar, in the Layouts Section
  5. Copy and paste the following code before the end of the head element (you can search for </head> and paste the code just before that line). Replace mydomain.com with your domain:
    <script>
    	(function(){
    		var t,i,e,n=window,o=document,a=arguments,s="script",r=["config","track","identify","visit","push","call"],c=function(){var t,i=this;for(i._e=[],t=0;r.length>t;t++)(function(t){i[t]=function(){return i._e.push([t].concat(Array.prototype.slice.call(arguments,0))),i}})(r[t])};for(n._w=n._w||{},t=0;a.length>t;t++)n._w[a[t]]=n[a[t]]=n[a[t]]||new c;i=o.createElement(s),i.async=1,i.src="//static.woopra.com/js/w.js",e=o.getElementsByTagName(s)[0],e.parentNode.insertBefore(i,e)
    	})("woopra");
    
    	woopra.config({
    		domain: 'mydomain.com'
    	});
    	
    	{% if shop.customer_accounts_enabled %}
      		{% if customer %}
    	woopra.identify({
      		first_name : {{ customer.first_name }},
      		last_name : {{ customer.last_name }},
      		name : {{ customer.name }},
      		email : {{ customer.email }}
    	});
    		{% endif %}
    	{% endif %}
    
    	woopra.track();
    </script>
    
  6. Click “Save” in the top right corner of the Shopify theme editor
  7. You can view your site’s stats by visiting http://www.woopra.com/live from an up-to-date browser. Woopra works best in Chrome and Safari, but will work in Firefox

shopify_screenshot

Need any help? Contact our Data Jedis