Answer the question
In order to leave comments, you need to log in
How to translate this Google Analytics code into Measurement Protocol?
I can’t figure out how to translate this code, which sends this data to Google Analytics, into the measurement format:
gtag("event", "purchase", {
"transaction_id": "00001",
"value": 5760.00,
"items": [
{
"name": "...",
"category": "...",
"quantity": 1,
"price": '5400.00'
},
{
"id": "...",
"name": "...",
"brand": "...",
"category": "...",
"quantity": 2,
"price": '180.00'
}
]
});
https://www.google-analytics.com/collect?v=1&tid=G-XXXXXXXX&cid=xxxxx&t=purchase&ti=00001&ev=5760
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question