Installation
Step 1: Add the tracking script
- Go to your Shopify admin
- Navigate to Online Store → Themes
- Click Actions → Edit code
- Open
theme.liquidin the Layout folder - Add the tracking script before the closing
</head>tag:
YOUR_TRACKING_CODE with your tracking code from the dashboard.
Step 2: Verify installation
- Visit your Shopify store
- Check your PostMetric dashboard - you should see your visit
Track purchases
Track purchases on the thank you page. Add this tocheckout.liquid or use the Order Status page:
Track add to cart
Track when items are added to cart. Add this to your cart template:Next steps
Connect payment providers
Learn how to link revenue to your analytics