Tracking Extension
The Magebit Tracking Extension provides robust tracking capabilities for your Magento storefront, enabling server-side tagging, enhanced data collection, improved website performance, and better user privacy compliance.
Overview
The Tracking Extension enhances your analytics capabilities by enabling server-side tagging, ensuring more accurate data collection, improved website performance, and enhanced user privacy. This extension provides comprehensive tracking solutions for modern e-commerce analytics requirements.
Documentation
- Guide - Comprehensive implementation guide
- Benefits - Key benefits and advantages
- Setup - Detailed setup instructions
Key Features
Server-Side Tagging
- Enhanced Performance - Reduces page load times by handling tracking on the server
- Improved Accuracy - Achieves 90%+ tracking accuracy compared to client-side solutions
- Ad Blocker Resistance - First-party data collection reduces blocking by ad blockers
- Privacy Compliance - Better compliance with GDPR and privacy regulations
Multiple Tracking Methods
- Measurement Protocol - Direct data transmission to GA4 without client-side scripts
- Server-Side GTM - Comprehensive server-side Google Tag Manager implementation
- Hybrid Setup - Flexible configuration for different tracking requirements
Core Web Vitals Tracking
- Performance Monitoring - Tracks Core Web Vitals metrics (CLS, LCP, INP)
- User Engagement - Monitors user interaction and engagement metrics
- Real-Time Analytics - Provides immediate insights into website performance
Enhanced Conversions
- Conversion Tracking - Improved conversion tracking accuracy
- Google Ads Integration - Enhanced Google Ads performance tracking
- Data Layer Events - Comprehensive event tracking through data layer
Prerequisites
Required
- PHP 8.1 or higher - Minimum PHP version requirement
- magebitcom/magento2-core - Necessary for Magebit tab in system configurations
- PHP ext-curl - Required for communication with server-side GTM
Recommended
- hyva-themes/magento2-theme-module - Some functionality relies on Hyva (Luma compatibility coming soon)
- hyva-themes/magento2-hyva-checkout - Required for add_shipping_info and add_payment_info events
Installation
Install the Tracking extension using Composer.
Installation Command:
composer require magebitcom/magento2-module-trackingPost-Installation Steps:
bin/magento setup:upgradeConfiguration Access: Navigate to Stores > Settings > Configuration > Magebit > Tracking to access tracking configuration options.
Configuration
General Settings
Configure basic tracking functionality and enable/disable features.
DataLayer Configuration
Set up data layer events and tracking parameters.
Debug Settings
Enable debugging features for troubleshooting and testing.
Core Web Vitals
Configure Core Web Vitals tracking and monitoring.
Enhanced Conversions
Set up enhanced conversion tracking for improved accuracy.
GTM Container Export
Export and configure Google Tag Manager containers.
Testing
For comprehensive testing of the Tracking extension, use the extended testing guide which features the base configuration necessary for testing locally, on staging, or production.
Testing Process:
- Validate that all events are working correctly
- Verify event structure is correct
- Ensure events receive 200 status codes from GTM
- Test server-side GTM implementation (if not using Measurement Protocol)
Server-Side GTM
The Tracking Extension supports server-side Google Tag Manager implementation for enhanced tracking capabilities.
Benefits:
- Improved Performance - Reduces client-side script loading
- Better Data Accuracy - More reliable data collection
- Enhanced Privacy - First-party data collection
- Multi-Platform Support - Distributes data to multiple measurement protocols
Implementation: Server-side GTM works by sending all event data to a dedicated tagging server, which then processes and distributes the data to various measurement protocols and Google Ads platforms.
Support
For additional help with server-side tagging implementation, contact the SEO team for assistance with server setup and configuration.