🎯 Ad Tracking Demo
This page demonstrates how Google Ads tracking IDs are captured and persisted.
Test Instructions
- Add tracking parameters to the URL:
?gclid=test123&fbclid=test456 - Refresh the page to capture the IDs
- Check the "Current Tracking IDs" section below
- Navigate to another page and come back - IDs should persist
- Click "Send Test Event" to verify IDs are sent with analytics
Current Tracking IDs
No tracking IDs found. Add ?gclid=test123 to the URL.
Persisted in localStorage
No tracking IDs persisted yet.
How to Test
1. Test URL Parameter Capture
Visit: ?gclid=test_gclid_123&fbclid=test_fbclid_456
2. Test localStorage Persistence
- Add tracking parameters to URL (see link above)
- Navigate to homepage
- Come back to this page
- Tracking IDs should still be present (persisted in localStorage)
3. Test Google Analytics Integration
- Ensure tracking IDs are captured (check above)
- Click "Send Test Event" button
- Open browser console (F12)
- Look for:
[Google Analytics] Event tracked: "demo_test_event" - Verify the event parameters include
gclid
Debug Information
localStorage Key: pausa_ad_tracking
Expiration: 30 days from capture
Browser Console: Check for [Tracking Capture] and [Google Analytics] logs
Check localStorage Manually
- Open DevTools (F12)
- Go to Application → Local Storage →
- Find key:
pausa_ad_tracking - View the stored data structure