Shopify
Enhance your Shopify store by adding Accylin's analytics to track detailed visitor insights and behavior patterns.
Prerequisites
- A Shopify store with admin access.
- Your Accylin tracking code for your website, see Getting Started.
Installation Steps
1. Access Theme Settings
- Log in to your Shopify admin panel
- Go to Online Store > Themes
- Find your active theme and click Actions > Edit code
2. Add Tracking Code
- In the theme editor, locate the
theme.liquid
file under Layout - Find the closing
</head>
tag - Just before the
</head>
tag, paste your tracking code you got from Accylin. - Click Save
3. Verify Installation
- Visit your Shopify store
- Check your Accylin dashboard
- Test a few page views to ensure tracking is working
Troubleshooting
If you don't see data in your dashboard:
- Ensure the code is placed correctly before the
</head>
tag - Verify your tracking script is correct
- Check that your ad-blocker is disabled
- Clear your browser cache and reload the page
Adding Custom Events
First make sure you are familiar with Custom Events in Accylin.
Modifying Theme Files
To add custom event tracking, you'll need to modify your theme's templates. Here's how:
- Go to Online Store > Themes
- Click Actions > Edit code
- Navigate to the appropriate template file:
- For product pages:
templates/product.liquid
- For collection pages:
templates/collection.liquid
- For cart:
templates/cart.liquid
- For general layout:
layout/theme.liquid
- For product pages:
Common Implementation Locations
Add to Cart Button
Look for the "Add to Cart" button in your product.liquid
file:
Product View Tracking
In your product.liquid
file, find the main product container:
Collection View Tracking
In your collection.liquid
file:
Newsletter Form
In your newsletter template or section:
Product View Tracking
Collection View Tracking
Common Issues and Solutions
-
If events aren't tracking:
- Verify the
data-accylin-event
attribute is present - Ensure all property names use lowercase and hyphens
- Check for missing quotes or typos in attribute names
- Verify the
-
For dynamic content:
- Handle null values with Liquid's conditional statements:
Support
Need help? Contact us at support@accylin.com or visit our help center.