Getting startedIntegrationsPlatforms
Shopify
Alytica Analytics Integration for Shopify
Overview
Alytica is a lightweight, privacy-focused web analytics tool designed to provide deep insights into Shopify store performance with minimal performance overhead. Our solution offers comprehensive tracking of page views, user interactions, and e-commerce events.
Key Features
- Automatic page view tracking
- E-commerce event logging
- Performance-optimized script
- Session and visitor identification
- Shopify-specific tracking capabilities
Integration Steps
1. Create a Project
First create a project from your Alytica dashboard by clicking the button "New Website"
2. Add Alytica Script
For Shopify, you have multiple integration approaches:
Option 1: Theme Customization
- Go to Online Store > Themes
- Edit
theme.liquid
- Add tracking script in
<head>
section:
Option 2: Script Tag
3. Track Custom Events
Utilize the global window.alytica()
function for tracking:
Best Practices
- Always include website ID and domain attributes
- Ensure script loads on all non-checkout pages
- Use
window.alytica()
for custom event tracking - Avoid multiple script insertions
Testing Your Integration
- Click the Verify Script button in the setup form
- Successful verification confirms correct installation
- Check Network tab for
https://alytica.tech/api/track-visit
calls - Verify custom events are being sent
- Use Alytica's dashboard for comprehensive insights
Conclusion
Alytica provides a simple, performance-friendly analytics solution for Shopify stores. Follow these steps to gain valuable insights into user behavior with minimal configuration.