Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Review the Google Analytics configuration #806

Open
tbouffard opened this issue Jan 11, 2023 · 0 comments
Open

[FEAT] Review the Google Analytics configuration #806

tbouffard opened this issue Jan 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@tbouffard
Copy link
Member

tbouffard commented Jan 11, 2023

See if we can implement exactly the following rules as described in https://docs.r-hub.io/#privacy (Hugo framework configuration)

[privacy.googleAnalytics]
anonymizeIP = true
disable = false
respectDoNotTrack = true
useSessionStorage = true

This means

  • IP addresses are anonymized within Google Analytics,
  • The GA templates respect the “Do Not Track” HTTP header,
  • The use of Cookies is disabled, instead Session Storage to Store the GA Client ID is used.

The latest available configuration we use (at the time of writing this description) is

{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
process.env.GATSBY_GA_MEASUREMENT_ID, // Google Analytics
],
// This object gets passed directly to the gtag config command
gtagConfig: {
// see https://www.gatsbyjs.com/plugins/gatsby-plugin-google-gtag/#the-gtagconfiganonymize_ip-option
anonymize_ip: true,
},
// This object is used for configuration specific to this plugin
pluginConfig: {
// Puts tracking script in the head instead of the body
head: false,
// Google Global Site Tag will not be loaded at all for visitors that have “Do Not Track” enabled.
respectDNT: true,
},
},
},

2 rules described above (anonym_ip and respect DNT) are already configured but not "disable cookies".

If we can implement it, we can check if we can remove the decline/accept cookies or at least, show to users that we value their privacy.

@tbouffard tbouffard added the enhancement New feature or request label Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant