Everything you need to get set up and get value from TagDrishti.
TagDrishti is up and running in just three steps:
In GTM, go to Tags ā New ā Custom HTML. Paste this snippet ā replacing the two values with your actual tenant ID and API key from Dashboard ā Settings ā API & Script:
<!-- TagDrishti Monitor ā paste into GTM Custom HTML tag --> <script> window.GTM_MONITOR_CONFIG = { tenantId: "td-your-tenant-id", apiKey: "td_live_xxxxxxxxxxxx", apiEndpoint: "https://gtm-monitor-api-461734534175.asia-south1.run.app" }; </script> <script src="https://gtm-monitor-api-461734534175.asia-south1.run.app/tagdrishti.js?workspace=YOUR_WORKSPACE_ID" async></script>
Set the trigger to All Pages. Name the tag TagDrishti Monitor. Click Save ā Submit ā Publish.
After publishing GTM, open your website in a browser. Within 30 seconds you should see events in your TagDrishti dashboard. To verify:
gtm-event/api/gtm-event with status 200All config is set via window.GTM_MONITOR_CONFIG before the script loads:
window.GTM_MONITOR_CONFIG = {
tenantId: "td-your-id", // Required
workspaceId: "ws-your-ws-id", // Optional ā defaults to 'default'
apiKey: "td_live_xxxxx", // Required
apiEndpoint: "https://gtm-monitor-api-461734534175.asia-south1.run.app", // Required ā from Settings page
sampleRate: 1.0, // 0.0ā1.0 ā % of events to collect (default: 1.0)
childrenMode: false, // DPDP 2023 children protection (default: false)
environment: "production" // 'production' | 'staging' | 'development'
};
Each workspace in TagDrishti corresponds to one monitored domain. When you add a workspace, you get a unique API key for that domain. This keeps your client data separated ā Domain A can never see Domain B's data.
To add a workspace: Dashboard ā Domains ā Add Domain. Enter the domain name and GTM container ID. You'll receive a workspace-specific snippet to install.
API keys are in the format td_live_xxxxxxxxxxxx. Each key is:
The Overview tab shows your 24-hour summary across all domains: total tag fires, failure rate, average latency, active alerts, and a dual-line chart showing fires vs failures over time.
The Domain Health section shows a success rate sparkline for each domain. Click any domain to jump to the filtered Tag Health view.
The Tag Health tab shows every tag fired across all monitored domains in the selected time range. Columns:
Use the status filter to see only failing tags. Export to CSV for client reporting.
The Security tab monitors for threats on your pages:
For PCI DSS compliance, add your approved script domains to the allowlist in Dashboard ā Settings ā Data & Privacy ā Approved Script Domains.
The Consent tab shows real-time consent rates for each consent signal detected via Google Consent Mode v2:
The Web Vitals tab shows P75 measurements for LCP, CLS, INP, FCP, and TTFB per domain. Thresholds match Google's definitions (Good / Needs Improvement / Poor). The LCP trend chart shows 7-day performance over time.
Alerts are triggered when anomaly conditions are met. Configure thresholds in Dashboard ā Settings ā Notifications:
Alerts are delivered via email (all plans) and Slack webhook (Agency and Enterprise).
All events are streamed in real-time to Google BigQuery. To connect your own BigQuery dataset:
roles/bigquery.dataViewer to the TagDrishti service accounttag_events, security_events, consent_snapshots, web_vitals_rollups, and anomaly_alerts tablesTo receive alerts in Slack:
All API endpoints require Authorization: Bearer {clerk_jwt} header. Base URL: https://gtm-monitor-api-461734534175.asia-south1.run.app
range (1h/24h/7d/30d), workspace_idrange, workspace_id, status (success/warning/failure)range, type (unknown_domain/sri_missing/csp_violation)range, workspace_id, device (mobile/desktop/tablet){ workspace_id, alert_email, slack_webhook_url, enabled, threshold }For the complete API reference including response shapes and BigQuery query examples, see the API Connection Guide.
TagDrishti is GDPR-compliant by default for EU users. The script automatically detects EU visitors via Cloudflare geo-IP and applies session pseudonymisation. No additional configuration is required.
For DSAR (Data Subject Access Requests): Dashboard ā Settings ā Data & Privacy ā Export Data. Enter the pseudonymous session hash to generate a GDPR-compliant data export.
For Indian user compliance under the Digital Personal Data Protection Act 2023:
childrenMode: true in your script config ā this blocks all non-essential tag monitoring for that sessionTo use TagDrishti for PCI DSS 6.4.3 and 11.6.1 compliance: