If you’re running an online store on Shopify, it’s easy to track how it’s being used. All you need to do is add your store to Piwik PRO, install the container on Shopify and voila! You’ll have access to Analytics, Tag Manager and Consent Manager right within your Shopify store.
In this article, we’ll provide a step-by-step guide on how to make this happen.
Add a site in Piwik PRO
To add your Shopify store as a site in Piwik PRO, follow these steps:
- Go to Menu > Administration.
- Navigate to Sites & apps.
- Click Add a site or app.
- Type the site name and address and click Save.
- Set the time zone and currency.
Note: We’ll show data in reports in this time zone. We’ll use this currency for goal revenue.
- Navigate to Installation.
- In Sites, click Install manually.
- Copy the code from Basic container (async).
Install the container in Shopify
To install the Piwik PRO container in your Shopify store, follow these steps:
- Log in to Shopify.
- Go to Online Store > Themes.
- In the section with your current Shopify theme, click the ⋯ three-dot icon.
- Click Edit code.
- The theme code will be opened in Shopify’s Code Editor.
- In Layout, find your theme.liquid file that defines the look and feel of your theme.
- Paste the container code right after the opening <body> tag in the theme’s HTML code.
- Click Save.
- To confirm that Piwik PRO is properly installed on your store, click the ⋯ three-dot icon.
- Choose Preview from the list.
- If you see our consent form, the installation was successful.
Tip: We’ll start showing a consent form on your Shopify site after you’ve installed the container. Add your privacy policy address to the form or turn off the consent form. - Well done! Data will appear in reports in about an hour. Data in the tracker debugger will appear instantly.
Tip: You can also check manually to see if your tracking works. Read more
Tip: To change the way your data is collected, you can use the following settings: