Google Analytics server side call err "The value provided for ...
文章推薦指數: 80 %
https://www.google-analytics.com/debug/collect?tid=fake&v=1. However yet you state you are trying to use Google Analytics 4 which implies ...
Home
Public
Questions
Tags
Users
Companies
Collectives
ExploreCollectives
Teams
StackOverflowforTeams
–Startcollaboratingandsharingorganizationalknowledge.
CreateafreeTeam
WhyTeams?
Teams
CreatefreeTeam
Collectives™onStackOverflow
Findcentralized,trustedcontentandcollaboratearoundthetechnologiesyouusemost.
Learnmore
Teams
Q&Aforwork
Connectandshareknowledgewithinasinglelocationthatisstructuredandeasytosearch.
Learnmore
GoogleAnalyticsserversidecallerr"Thevalueprovidedforparameter'tid'isinvalid.usingavalid"withmeasurementID
AskQuestion
Asked
8monthsago
Modified
8monthsago
Viewed
241times
0
IamtryingtodoaserversidecalltoGoogleAnalytics4withavalidMeasurementID(G-0GHN4RGNDQ)it'satestone,soOKtosharehere,seehttps://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#vandthedebugcallhere:
https://www.google-analytics.com/debug/collect?v=1&tid=G-0GHN4RGNDQ&cid=555&t=event&ec=MyCategory&ea=MyAction&el=MyLabel
Igetthiserror
{
"hitParsingResult":[{
"valid":false,
"parserMessage":[{
"messageType":"ERROR",
"description":"Thevalueprovidedforparameter'tid'isinvalid.Pleaseseehttps://developers.google.com/analytics/devguides/collection/protocol/v1/parametersfordetails.",
"messageCode":"VALUE_INVALID",
"parameter":"tid"
}],
"hit":"/debug/collect?v=1\u0026tid=G-0GHN4RGNDQ\u0026cid=555\u0026t=event\u0026ec=MyCategory\u0026ea=MyAction\u0026el=MyLabel"
}],
"parserMessage":[{
"messageType":"INFO",
"description":"Found1hitintherequest."
}]
IcansuccessfullymakegtagcallsusingthatsameMeasurementIDandtheeventsshowupinGoogleAnalytics...howeverIcan'tseemtogetittoworkviathe/debug/urlabove.
Anyhelpappreciated.
google-analyticsgoogle-analytics-4measurement-protocol
Share
Follow
editedNov21,2021at17:56
DaImTo
91.1k2626goldbadges156156silverbadges393393bronzebadges
askedNov21,2021at1:19
aginsburgaginsburg
1,19311goldbadge1111silverbadges2222bronzebadges
Addacomment
|
1Answer
1
Sortedby:
Resettodefault
Highestscore(default)
Trending(recentvotescountmore)
Datemodified(newestfirst)
Datecreated(oldestfirst)
1
Youappeartobeusingtheendpointfor
MeasurementProtocol(UniversalAnalytics)
https://www.google-analytics.com/debug/collect?tid=fake&v=1
HoweveryetyoustateyouaretryingtouseGoogleAnalytics4whichimpliesGA4andnotUniversalanalytics.
YoushouldbeusingMeasurementProtocol(GoogleAnalytics4)
POST/mp/collectHTTP/1.1
HOST:www.google-analytics.com
Content-Type:application/json
延伸文章資訊
- 1What happened to my Tracking ID? - Analytics Help - Google Support
- 2Google Analytics server side call err "The value provided for ...
https://www.google-analytics.com/debug/collect?tid=fake&v=1. However yet you state you are trying...
- 3Measurement Protocol in Google Analytics - Tutorial
'tid' is used to denote the tracking ID. The value of this parameter should be the property ID of...
- 4How Google Analytics Collects Data - AnalyticsMarket
When Google Analytics code gathers information about your website visitors, how does it send ... ...
- 5GA4 (Google Analytics 4) Measurement Protocol Tutorial
In the case of GA4, 'tid' denotes the measurement ID (and not the tracking ID). The value of this...