DeGroot Logistics Analytics Tracker

✅ Tracker is deployed and ready to use

Installation

Add this script tag to your DeGroot Logistics website (before closing </head> tag):

<script src="https://degroot-analytics.pages.dev/analytics.js" async></script>

Features

Testing

To test campaign tracking:

  1. Visit your site with a test UID: https://degrootlogistics.com/?uid=000123
  2. Open browser console and check: localStorage.getItem('dg_active_uid_degroot-logistics')
  3. Should return: "000123"

Debug Mode

To enable console logging, add this BEFORE the script tag:

<script>
  window.__TRACKING_CONFIG__ = { debug: true };
</script>
<script src="https://degroot-analytics.pages.dev/analytics.js" async></script>

API

Access analytics functions via:

// Get current state
window.degrootAnalytics.getState()

// Identify a user
window.degrootAnalytics.identifyUser('user@example.com')

// Track custom event
window.degrootAnalytics.recordCustomEvent('button_click', { buttonId: 'cta-1' })

Deployment Info

Site ID: degroot-logistics
Endpoint: https://api.thewatcher.dev/api/track
Script URL: https://degroot-analytics.pages.dev/analytics.js


Powered by TheWatcher Analytics • Dashboard