Step 1 - Create a Metricks account or sign in if you already have one.

  • If this is your first campaign, then navigate to your Metricks dashboard, and click "Getting Started."

  • If this is not your first campaign, create a new one from your dashboard by navigating to Campaigns > Create A New Campaign.

  • Proceed to fill out your campaign details and proceed to the next step.

Step 2 - Log into your Shopify store in another tab in your browser.

On the sidebar, navigate to Sales Channels > Themes > Actions > Edit Code.

Step 3 - Open Theme-Liquid under the Layout folder on the side bar.

Step 4 - Add the following code just before the </head> tag.


    !function(e,t,n,a,c,s,r){e[a]||((c=e[a]=function(){c.process?c.process.apply(c,arguments):c.queue.push(arguments)}).queue=[],c.t=+new Date,(s=t.createElement(n)).async=1,s.src=""+864e5*Math.ceil(new Date/864e5),(r=t.getElementsByTagName(n)[0]).parentNode.insertBefore(s,r))}(window,document,"script","metr"),metr("init","YOUR_API_KEY"),metr("event","detect");


Step 5 - In your Metricks dashboard, click on the dropdown with your account name and click Account Settings.

Next, open your profile settings.

Scroll all the way down to find and copy your unique API key.

Step 6 - Return to the Shopify code editor

Replace "init","YOUR_API_KEY" with the API key in your clipboard.

Step 7 - Hit "Save" and exit.

Step 8 - Go to your Shopify store, scroll to Admin Environment, Settings > Check Out and Account > Scroll down to the Order Status page > Additional Script and paste the following code;

!function(e,t,n,a,c,s,r){e[a]||((c=e[a]=function(){c.process?c.process.apply(c,arguments):c.queue.push(arguments)}).queue=[],c.t=+new Date,(s=t.createElement(n)).async=1,s.src=""+864e5*Math.ceil(new Date/864e5),(r=t.getElementsByTagName(n)[0]).parentNode.insertBefore(s,r))}(window,document,"script","metr"),metr("init","YOUR_API_KEY"),metr("event","conversion", {order_id: '{{ order_number }}', amount: {{ order.subtotal_price}}/100, currency: '{{ order.currency }}', customer_id: '{{ }}', email: '{{ }}'});

  • Repeat Steps 5 and 6

  • Hit Save and you are all done!