Click on these links to test different campaign tracking scenarios:
Facebook Ad Campaign
Instagram Ad Campaign
Google Search Ad
Google Display Ad
Current Tracking Data
URL Parameters (Current Page)
null
Cookie Data (Persisted)
null
Attribution Data
First Touch:
Last Touch:
How to Test
Click on one of the test URLs above
You'll see the UTM parameters appear in the URL
Check the browser console for tracking logs
The middleware will store campaign data in cookies
Google Tag Manager will receive the campaign events
SiteBehaviour will track the campaign data
Integration Checklist
✅ Middleware captures UTM parameters
✅ Campaign data stored in cookies (30-day expiration)
✅ Google Tag Manager receives events
✅ SiteBehaviour tracking integrated
✅ First-touch attribution tracking
✅ Last-touch attribution tracking
✅ Session ID generation
✅ Landing page tracking
Note for Production
Remember to update the base URL in your campaign URL generation when deploying to production. Use your actual domain (https://360degreecare.net) instead of localhost.