I created a web page, tracked with Google's gtag.js, and I added a timing event using the syntax as per docs:
gtag('event', 'timing complete', {
'name' : 'staring_blankly_into_space',
'value' : 3549
});
The event is fired and sent properly.
When I look at my Analytics' reports:
Event category -> general, Event Action -> timing complete, Event Label -> not set
No trace of the 'name'
field to be found.
Any insight on this? (I could try and use the 'event_label'
field to set my timing description, but it's not how it's supposed to work.)
答案 0 :(得分:1)
您的代码应为(带有下划线,请参见documentation):
gtag('event', 'timing_complete', {
'name' : 'staring_blankly_into_space',
'value' : 3549
});