In this article, we'll show you how to install the Mouseflow tracking code on your Shopify site in a few easy steps.
This guide will walk you through the 3 short steps involved in enabling tracking for your Shopify site.
Note: The option to install a tracking code is only available as a Premium feature on Shopify and not included in their basic plan.
1. Log in to Mouseflow
Begin by logging into Mouseflow and clicking the </> symbol to open up the Tracking Code you will need. In the next prompt, select the option titled "HTML".
Click the Copy to Clipboard button to save the Tracking Code.
You will need this in step 3.
2. Log in to your Shopify Account and Install the Mouseflow Tracking code
Once you've logged into your Shopify account please Navigate to Customize Theme > Customize Theme > Customize
Go to the Theme Actions area in the bottom left of the screen and select Edit Code
Under Layout, click theme.liquid to open your template file and scroll to the bottom of the code. Just before the closing body tag </body> is where you should insert the Mouseflow Tracking Code.
Please make sure to save the updated theme before closing the window.
!Important!: If you want to record your Checkout flow in Shopify please find our guide to Installing Mouseflow on Shopify Checkout pages here
3. Test Installation and Activate Tracking
Once you have completed adding the Mouseflow Tracking Code to your site you should refresh one of the pages that the code is on, this will let Mouseflow know that the installation has been made.
To begin recording traffic on your site, you need to activate tracking by clicking the Activate Tracking button from the Manage My Sites page.
You confirm that you will abide by Mouseflow terms and not collect Personal Identifiable Information (PII) by signing your name and clicking the button.
Tip: If you are not seeing the Activate Recording button (or popup) at this point, please try to visit your site in your browser's Private or Incognito mode, and do some clicking, scrolling and navigating while you're there.
Congratulations! You Made it!
Now go celebrate with your team while the insights pour in.
Once you have activated tracking, Mouseflow will automatically begin recording your visitors. You can check the Recording Status from the Manage My Sites page or you can click the play button to go to your Dashboard.
Once you're done celebrating here are a few next steps to consider.