Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
351 views
in Technique[技术] by (71.8m points)

google analytics - GA: Custom dimension values are not updating

I Have created a custom dimension in GA with index 1, I would like to pass custom dimension for each event.

I am doing following to capture custom dimensions.

gtag('config', '{{google-analytics-key}}', { 'anonymize_ip': true,
     'custom_map': {'dimension1': 'dimension_name'} });

Event:- gtag('event','open', { dimension_name:'value',event_label, event_category });

When I enable Google Analytics plugin I see following logs

Processing GTAG command: ["event", "Bulk Actions", {event_label: "Event Label", event_category: "Custom category", dimension_name: "xxxxx"}]
Running command: ga("gtag_UA_111111111_2.send", "event", {title: "Portfolio Scenario Assets", page: "env/UA-111111111-2/data/*****", location: "https:*.qa.x.com/env/UA-111111111-2/data/portfolios/2/scenarios/2/properties", forceSSL: true, &gtm: "2ou1d0", hitCallback: [function], eventCategory: "****", eventAction: "***", eventLabel: "***"})

Hit URL:-

https://www.google-analytics.com?v=1&_v=j87d&a=402595897&t=event&_s=15&dl=https%3A*%2Fenv%2FUA-111111111-2%2Fdata%2Fportfolios%2F2%2Fscenarios%2F2%2Fproperties&dp=env%2FUA-111111111-2%2Fdata%2Fportfolios%2F2%2Fscenarios%2F2%2Fproperties&ul=en-us&de=UTF-8&dt=Portfolio%20Scenario%20Assets&sd=24-bit&sr=1280x720&vp=271x610&je=0&ec=Portfolio%20Scenario%20Assets&ea=Bulk%20Actions&el=Property%20Assets&_u=yCCAAUABAAAAAC~&jid=&gjid=&cid=811829360.1611224663&tid=UA-111111111-2&_gid=1662678001.1611565267&gtm=2ou1d0&z=1790884422

The interesting part is I see few values getting captured in GA but it is not consistent. Not able to guess, what could have been went wrong.

Can some one tell me, How do I get custom reports similar to realtime reports and what could have been wrong in the process what I am doing.

question from:https://stackoverflow.com/questions/65883822/ga-custom-dimension-values-are-not-updating

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...