Shopify Custom Pixel
The TrueMetriks Shopify Custom Pixel tracks your pageviews, checkouts, and orders automatically. Here is how to set it up.
Video guide
Copy the pixel code from your dashboard
In your TrueMetriks dashboard, go to Settings > Tracking, pick the Shopify tab, and click Copy on the code block.
Showing setup for Shopify
Install on Shopify
Add a Custom Pixel in Shopify to start sending events from your store to TrueMetriks and every ad platform you have connected.
CUSTOM PIXEL CODE
// ===== Shopify Custom Pixel - TrueMetriks Analytics ===== // Auto-generated for yourstore.com // Paste into: Shopify Admin > Settings > Customer events > Add custom pixel // Customer Privacy: set to "Not required", then Save -> Connect
Shopify admin → Settings → Customer events → Add custom pixel. Paste the code above, then Save → Connect.
Open Settings in Shopify Admin
Log in to your Shopify Admin. At the bottom of the main left sidebar, click Settings.
Open Customer events
The Settings panel slides in from the left. Scroll down and click Customer events.
Your Organization
Organization
- Organization
- Users
Your Store
yourstore.myshopify.com
- General
- Plan
- Billing
- Payments
- Checkout
- Customer accounts
- Shipping and delivery
- Taxes and duties
- Apps
- Domains
- Customer events
- Notifications
- Languages
- Customer privacy
Click Add custom pixel
At the top right of the Customer events page, click the dark Add custom pixel button.
Pixels
Name it TrueMetriks
In the Add custom pixel dialog, type TrueMetriks in the Pixel name field, then click Add pixel.
Add custom pixel
This is an advanced feature that requires JavaScript knowledge. Shopify is not responsible for your use of pixels.
Paste the code and Connect
You land on the pixel editor. Find the Code section near the bottom of the page and replace the default content with the code you copied from your TrueMetriks dashboard. Then click Connect in the top right.
Customer privacy
Code
1// ===== Shopify Custom Pixel - TrueMetriks Analytics ===== 2// Auto-generated for yourstore.com 3// Paste this entire block as-is 4(function () { 5 // ... 6})();
How to test
After connecting the pixel, the next step is verifying everything is firing correctly. See Test your integration for the full walkthrough.
Something not firing? See Troubleshooting.
Frequently asked questions
Where do I find the Custom Pixel code?
In your TrueMetriks dashboard at Settings > Tracking > Shopify. The code block has a Copy button and is generated for your specific store.
Do I need to install a Shopify app?
No. The Custom Pixel route does not require any Shopify App Store install. You paste the code directly into Shopify Admin under Settings > Customer events.
What should I set Customer Privacy to?
Set Permission to "Not required". The code in your dashboard works with this setting and sends events through your own first-party domain.
Does this work with all Shopify checkout flows?
Yes. The Custom Pixel runs across product pages, cart, checkout, and the post-purchase thank-you page.
How do I update the pixel later?
If we ship a code update, your dashboard will flag it on the Shopify tab. Copy the new code, open the existing pixel in Shopify Admin, replace the content of the Code section, then click Connect again.