google-analytics

How to determine client's country using Google Analytics?

只谈情不闲聊 提交于 2021-01-05 10:44:14
问题 My page uses GA to provide myself with statistics. I can later see countries that were most visiting my site. Are there any way to get client's country at the client-side? I would like to show user a notification if she is not from my country. 回答1: You don't have access to that information in the browser using GA. If you want to access that information in the browser Try geolocation in browsers whom support it. spec. http://dev.w3.org/geo/api/spec-source.html demo: http://html5demos.com/geo

Google Analytics 4 and the Measurement Protocol API

强颜欢笑 提交于 2021-01-04 05:49:52
问题 Google Analytics 4 changes some things like Events and introduces new concepts like User Properties. The Measurement Protocol API does not appear to have parameters to support the new Events or User Properties. Does it actually support Google Analytics 4 and if so, how do we submit the new information to that API? If it doesn't, how soon will the new Google Analytics 4 properties be supported in the Measurement Protocol API? 回答1: The link to the documentation you indicated refers to the

Google Analytics 4 and the Measurement Protocol API

牧云@^-^@ 提交于 2021-01-04 05:48:04
问题 Google Analytics 4 changes some things like Events and introduces new concepts like User Properties. The Measurement Protocol API does not appear to have parameters to support the new Events or User Properties. Does it actually support Google Analytics 4 and if so, how do we submit the new information to that API? If it doesn't, how soon will the new Google Analytics 4 properties be supported in the Measurement Protocol API? 回答1: The link to the documentation you indicated refers to the

Analytics in iOS App - Request user consent

核能气质少年 提交于 2021-01-02 07:54:34
问题 I'm debating whether to include (Google) analytics in my iOS app. Obviously I would like the analytics data, but my concern is whether to simple advise the user that data is being collected, or to specifically request their consent. Is specific consent required, or can one simple inform the user via a loading page or website privacy policy page? Apple has a rule on consent, but does this necessarily translate into displaying a dialogue box with a Agree/Disagree buttons? Thanks! 回答1: As I

How set up a Gatsby Cookie consent banner with gatsby-plugin-gdpr-cookies

≡放荡痞女 提交于 2020-12-25 01:04:45
问题 My website gathers information for Google Analytics, so I need to include a Cookie consent banner for the users to opt in/out of. I saw the plugin gatsby-plugin-gdpr-cookies and thought it looked perfect. I've followed the startup and have it inside my config file. However I'm not sure what to do next. Do I need to create a banner component and link it all up somehow? I've tried to look around for other examples but can't see any. Any help appreciated, thanks. 回答1: You have to combine a

How set up a Gatsby Cookie consent banner with gatsby-plugin-gdpr-cookies

强颜欢笑 提交于 2020-12-25 01:00:00
问题 My website gathers information for Google Analytics, so I need to include a Cookie consent banner for the users to opt in/out of. I saw the plugin gatsby-plugin-gdpr-cookies and thought it looked perfect. I've followed the startup and have it inside my config file. However I'm not sure what to do next. Do I need to create a banner component and link it all up somehow? I've tried to look around for other examples but can't see any. Any help appreciated, thanks. 回答1: You have to combine a

How set up a Gatsby Cookie consent banner with gatsby-plugin-gdpr-cookies

倾然丶 夕夏残阳落幕 提交于 2020-12-25 00:56:10
问题 My website gathers information for Google Analytics, so I need to include a Cookie consent banner for the users to opt in/out of. I saw the plugin gatsby-plugin-gdpr-cookies and thought it looked perfect. I've followed the startup and have it inside my config file. However I'm not sure what to do next. Do I need to create a banner component and link it all up somehow? I've tried to look around for other examples but can't see any. Any help appreciated, thanks. 回答1: You have to combine a

How set up a Gatsby Cookie consent banner with gatsby-plugin-gdpr-cookies

落爺英雄遲暮 提交于 2020-12-25 00:52:14
问题 My website gathers information for Google Analytics, so I need to include a Cookie consent banner for the users to opt in/out of. I saw the plugin gatsby-plugin-gdpr-cookies and thought it looked perfect. I've followed the startup and have it inside my config file. However I'm not sure what to do next. Do I need to create a banner component and link it all up somehow? I've tried to look around for other examples but can't see any. Any help appreciated, thanks. 回答1: You have to combine a

Google Analytics error when changing protocol from http to https

回眸只為那壹抹淺笑 提交于 2020-12-12 06:53:47
问题 I am trying to change the protocol on google analytics from http to https. But I can't and get this error in the console: Uncaught TypeError: Cannot read property 'item' of undefined at ga47Cc.ga4a.l9c (m=pm_base:15387) at HTMLElement.dispatch (<anonymous>:40:17183) at HTMLElement.m.handle (<anonymous>:40:15260) at p.CT (m=pm_base:8613) at m.kW (m=pm_base:8606) at q.CT [as invoke] (m=pm_base:8614) at m (m=pm_base:108) at HTMLElement.n (m=pm_base:108) ga4a.l9c @ m=pm_base:15387 dispatch @

Google Analytics error when changing protocol from http to https

◇◆丶佛笑我妖孽 提交于 2020-12-12 06:52:31
问题 I am trying to change the protocol on google analytics from http to https. But I can't and get this error in the console: Uncaught TypeError: Cannot read property 'item' of undefined at ga47Cc.ga4a.l9c (m=pm_base:15387) at HTMLElement.dispatch (<anonymous>:40:17183) at HTMLElement.m.handle (<anonymous>:40:15260) at p.CT (m=pm_base:8613) at m.kW (m=pm_base:8606) at q.CT [as invoke] (m=pm_base:8614) at m (m=pm_base:108) at HTMLElement.n (m=pm_base:108) ga4a.l9c @ m=pm_base:15387 dispatch @