Add Trfyx to your Shopify store
Connect Trfyx to Shopify without adding tracking code manually. Once connected, Trfyx can automatically track:- Visitor analytics — Pageviews, visitors, referrers, devices, countries, and more.
- Custom events —
add_to_cartandinitiate_checkoutevents for conversion funnels. - Revenue from orders — Completed orders from your Shopify store.
- Revenue attribution — Connect revenue to traffic sources such as referrers, countries, and devices.
If you’ve previously installed the Trfyx tracking script manually on your Shopify store, remove it before connecting the Shopify integration. The integration installs the tracker automatically, and having both can cause duplicate tracking.
Step 1: Create a Shopify app
To connect Trfyx to Shopify, first create a Shopify app and generate API credentials.- Go to the Shopify Dev Dashboard and create an account if you don’t have one.
- Click Create app in the top-right corner.
- Name your app, for example
Trfyx Integration, and click Create. - Make sure the Webhooks API Version is set to
2025-10. - Scroll to Access > Scopes and enable the required scopes:
read_orders— Track revenue from orders.read_products— Track product views.read_customers— Attribute revenue to customers.write_script_tags— Install the Trfyx tracking script.
- Scroll to the bottom and click Release.
- In the confirmation modal, leave the fields empty and click Release again.
Step 2: Install the Shopify app
- In the Shopify Dev Dashboard, click Home in the left sidebar.
- Click Install app in the top-right corner.
- Select the Shopify store you want to connect to Trfyx.
- Shopify will redirect you to your store’s admin. Click Install.
Step 3: Connect Shopify to Trfyx
- In the Shopify Dev Dashboard, select your app and open Settings.
- In the Credentials section, copy your Client ID and Client Secret.
- Open your Trfyx dashboard and select the website you want to connect.
- Enter your Shopify store details:
- Shopify store domain — Your Shopify domain containing
*.myshopify.com, not your custom domain. - Client ID — The Client ID from your Shopify app.
- Client Secret — The Secret from your Shopify app.
- Shopify store domain — Your Shopify domain containing
- Click Connect Shopify.
You can find the Shopify connection form in your website’s settings or during the onboarding flow when creating a new website.
Verify the installation
After connecting Shopify, verify that everything is working correctly:- Visit your Shopify store.
- Open your Trfyx dashboard and confirm that pageviews start appearing within a few minutes.
- Make a test purchase, or check an existing order, and confirm that revenue appears in your analytics.
Duplicate pageviews
If you see duplicate pageviews, check whether the Trfyx tracking script is also installed manually on your Shopify store. Remove the manually installed<script> tag and let the Shopify integration handle the installation.