This is added to body end: // Extract tracking params from URL const params = new URLSearchParams(window.location.search); const screenId = params.get('screen_id'); const assetId = params.get('asset_id'); if (screenId && assetId) { fetch('https://tms-promotions-api.tms-travel-marketing-systems.workers.dev/screen-scans', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ site_id: screenId, asset_id: assetId, timestamp: new Date().toISOString() }) }).catch(() => {}); }