🎯 Ad Tracking Demo

This page demonstrates how Google Ads tracking IDs are captured and persisted.

Test Instructions

  1. Add tracking parameters to the URL: ?gclid=test123&fbclid=test456
  2. Refresh the page to capture the IDs
  3. Check the "Current Tracking IDs" section below
  4. Navigate to another page and come back - IDs should persist
  5. 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

  1. Add tracking parameters to URL (see link above)
  2. Navigate to homepage
  3. Come back to this page
  4. Tracking IDs should still be present (persisted in localStorage)

3. Test Google Analytics Integration

  1. Ensure tracking IDs are captured (check above)
  2. Click "Send Test Event" button
  3. Open browser console (F12)
  4. Look for: [Google Analytics] Event tracked: "demo_test_event"
  5. 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

  1. Open DevTools (F12)
  2. Go to Application → Local Storage →
  3. Find key: pausa_ad_tracking
  4. View the stored data structure