'How can I see measurement protocol hits in server-side GTM's preview mode?
I'm debugging measurement protocol hits to a server-side GTM container (from Insomnia, but tested with curl as well), but don't see them showing up in the container's preview mode. How can I see these?
For example:
curl -X POST -H 'Content-Type: application/json' -d '{"client_id": "1234.5678", "events": [{"name": "test"}]}' 'https://gtm.example.com/mp/collect'
Solution 1:[1]
Found it:
Add the X-Gtm-Server-Preview header with the value you can find from "?" > "Send requests manually"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Harm |
