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: google anaytics 4 and matomo for OFF #6712

Merged
merged 4 commits into from
Apr 29, 2022
Merged

Conversation

alexgarel
Copy link
Member

Checklist

  • use GA4 with as much privacy as possible
  • setup Matomo to eventually replace GA4

@alexgarel alexgarel requested a review from a team as a code owner April 28, 2022 10:24
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@alexgarel alexgarel changed the title Feat ag analitycs feat: google anaytics 4 and matomo for OFF Apr 28, 2022
@alexgarel alexgarel changed the title feat: google anaytics 4 and matomo for OFF feat: google anaytics 4 and matomo for OFF Apr 28, 2022
@@ -357,14 +357,35 @@ $page_size = 24;

$google_analytics = <<HTML
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-31851927-1"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HQX9SYHB2P&aip=1"></script>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not possible to keep the same id so that we have continuous stats?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is a requirement of GA4
Moreover GA4 drastically decrease retention period to 2 monthes (but we could set 4 monthes) (@teolemon you are aware of it right ?)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok, well if it retains data for only a few months anyway, then this point becomes moot.

but that means that we can't even have very aggregated metrics across years? e.g. getting a graph with monthly users and page views over a period of several years?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems it's only for exploration: if you want to slice and dice data accross users: https://support.google.com/analytics/answer/7667196?hl=fr

But the summary metrics are kept.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, anyway there's no choice, so let's go for it

@alexgarel alexgarel merged commit 7921b3e into main Apr 29, 2022
@alexgarel alexgarel deleted the feat-ag-analitycs branch April 29, 2022 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants