Installation Guides
Shopify Installation
Install Jetrack on your Shopify store
Add Jetrack to your Shopify store to track visitor behavior, conversions, and sales.
Installation Steps
- From your Shopify admin dashboard, go to Online Store → Themes
- Click Actions → Edit Code on your active theme
- In the left sidebar, find and click theme.liquid under Layout
- Locate the
</head>closing tag (usually around line 50-100) - Paste your BrandJet tracking script just before
</head>:
<!-- Jetrack -->
<script
async
defer
data-website-id="your-unique-id"
src="https://analytics.brandjet.ai/script.js">
</script>
</head>- Click Save
Your tracking script will now load on all pages of your Shopify store.
What Gets Tracked
BrandJet automatically tracks all Shopify pages:
- Product pages - Individual product views
- Collection pages - Category and collection browsing
- Cart page - Shopping cart interactions
- Checkout pages - Checkout flow (if allowed by your plan)
- Custom pages - About, Contact, etc.
Testing
- Visit your Shopify store in a browser
- Navigate through a few pages
- Check your BrandJet dashboard
- Verify that page views are being recorded
Preview Theme
The tracking script will also work in your theme preview mode, but remember:
- Previews may not send data to analytics
- Always test on your live store
- Enable localhost debugging if testing locally
Multiple Stores
If you run multiple Shopify stores:
- Create a separate website in BrandJet for each store
- Use the unique tracking script for each store
- Track performance separately in your BrandJet dashboard
Troubleshooting
Script Not Loading
- Verify you edited the active theme (not a draft)
- Check that you saved the
theme.liquidfile - Clear your browser cache
- View page source to confirm the script is present
Theme Updates
When updating your Shopify theme:
- Your custom code in
theme.liquidmay be overwritten - Always back up your theme before updating
- Re-add the tracking script after theme updates
Best Practices
- Add the script to
theme.liquidfor site-wide tracking - For specific pages only, add to individual template files
- Keep a backup of your theme before making changes