gtag Purchase Event ignored on Google Analytics
文章推薦指數: 80 %
I'm succesfully tracking some events with gtag.js on Google Analytics, with the exception of "purchase" event. Using GTM/GA chrome plugin ...
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
gtagPurchaseEventignoredonGoogleAnalytics
AskQuestion
Asked
1year,8monthsago
Modified
5monthsago
Viewed
3ktimes
4
I'msuccesfullytrackingsomeeventswithgtag.jsonGoogleAnalytics,withtheexceptionof"purchase"event.
UsingGTM/GAchromepluginI'vecheckedthatalleventsaretrackedcorrectly,"purchase"included.
Theproblemisthat"purchase"isnottrackedonGoogleAnalytics:alltheothersaretracked("begin_checkout","add_to_cart"...).
gtag("event","purchase",{
affiliation:"Googleonlinestore",
coupon:"SUMMER_DISCOUNT",
currency:"USD",
shipping:5.55,
tax:3.33,
transaction_id:"T_1",
value:28.86,
items:[
{
id:"P12345",
name:"AndroidWarholT-Shirt",
coupon:"P12345_coupon",
list_name:"SearchResults",
brand:"Google",
category:"Apparel/T-Shirts",
variant:"Black",
list_position:3,
quantity:1,
price:9.99
},
{
id:"P12346",
name:"FlamechallengeTShirt",
coupon:"P12346_coupon",
list_name:"SearchResults",
brand:"MyBrand",
category:"Apparel/T-Shirts",
variant:"Red",
list_position:5,
quantity:1,
price:9.99
}
]
});
Theconversion/e-commercegraphisflatasyoucansee.WhatamImissing?
Update
I'vecreatedaGAnalyticstestaccountandthepurchaseeventistracked.Onthescreenshot'saccount,maybe,someconfigurationismissing:couldbe?
eventsgoogle-analyticsevent-trackinggtag.js
Share
Improvethisquestion
Follow
editedNov13,2020at11:43
MassimoVariolo
askedNov2,2020at15:16
MassimoVarioloMassimoVariolo
4,51966goldbadges3737silverbadges6262bronzebadges
0
Addacomment
|
3Answers
3
Sortedby:
Resettodefault
Highestscore(default)
Trending(recentvotescountmore)
Datemodified(newestfirst)
Datecreated(oldestfirst)
2
Ihadtheexactsameproblem.
SomethingsInoticedthatcouldexplainut.
DateRange:MaybeyoumissedthefactthatthedaterangeinyourAnalytics
reportissetfor26Oct-1Nov,whileyoureventsweretriggered
on2Nov?
WrongValueField:Ifthecalculationofthevaluefieldiswrong(doesnotequaltotalofallitemsplusshippingfieldplustaxfield)Googlemightignoretheevent.
ProcessingTime:Evenwhenthe"Real-Time"viewshowstheevents,theyare
notalwaysincludedinotherreportsuntilsometimelater.
Share
Improvethisanswer
Follow
answeredDec30,2020at15:11
ipodppodipodppod
10255bronzebadges
1
Sometimes,Isendeventswherethetotalofallitemsisnotequaltothevaluewithtaxandshippingbecausethereisacouponcodeapplied(thecouponfieldisjustastringsothereisnowayforGoogletovalidatethetotal).Nevertheless,theeventsarevalidsinceIseetheminGoogleAnalytics.
– pmrotule
Feb24at7:24
Addacomment
|
1
InterestinglyI'mseeingsomethingsimilaronmytestsandI'musingsomesamplecodeoffgoogle:
延伸文章資訊
- 1Enhanced ecommerce | Universal Analytics for Web (gtag.js)
This page describes how to use gtag.js to collect enhanced ecommerce data. ... To measure a trans...
- 2GA4 For Ecommerce Sites: A Step-By-Step Guide With Shopify ...
- 3Gtag Purchase Event Ignored On Google Analytics - ADocLib
- 4Google Analytics 4 實現電子商務事件设定
purchase:購買成功
- 5gtag Purchase Event ignored on Google Analytics
I'm succesfully tracking some events with gtag.js on Google Analytics, with the exception of "pur...