Google Tag Manager
Learn how to integrate Oppla with Google Tag Manager (GTM) for easier tracking implementation.Setup
1. Create a Custom HTML Tag
In Google Tag Manager:- Go to Tags > New
- Click on Tag Configuration
- Select “Custom HTML”
- Add the Oppla tracking code:
2. Configure Triggers
Set up triggers for when the tag should fire:- All Pages: For basic tracking
- Specific Pages: For targeted tracking
- User Interactions: For event tracking
Event Tracking
Track Page Views
Track User Interactions
Data Layer Integration
Push to Data Layer
Listen for Data Layer Events
User Identification
Identify Users
Best Practices
- Use Variables: Store Oppla project ID in GTM variables
- Test in Preview: Always test in GTM preview mode
- Use Data Layer: Push events to data layer for consistency
- Monitor Performance: Check tag loading impact
Common Issues
Tag Not Loading
- Check GTM container code is properly installed
- Verify trigger conditions
- Check for JavaScript errors
Events Not Tracking
- Verify data layer pushes
- Check event names and properties
- Ensure proper timing of tag loading