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

Add Google Tag Manager and cookie consent #943

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

amakarudze
Copy link
Contributor

Changes in this PR:

  • Add a tag for Google Analytics to enable tracking website visits.
  • Add cookie consent for users.

The cookie consent dialogue looks as below:
Screenshot 2024-02-05 at 17 13 32

@amakarudze amakarudze requested a review from marksweb February 5, 2024 15:26
Copy link

codecov bot commented Feb 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e44120b) 80.94% compared to head (461121f) 81.24%.
Report is 26 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #943      +/-   ##
==========================================
+ Coverage   80.94%   81.24%   +0.29%     
==========================================
  Files          95       98       +3     
  Lines        2850     2938      +88     
  Branches      268      271       +3     
==========================================
+ Hits         2307     2387      +80     
- Misses        492      499       +7     
- Partials       51       52       +1     
Files Coverage Δ
donations/views.py 70.83% <100.00%> (+3.39%) ⬆️

... and 8 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c77bca1...461121f. Read the comment docs.

@@ -3,6 +3,14 @@
<!DOCTYPE HTML>
<html>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JGJW1VEY0D"></script>
Copy link
Collaborator

Choose a reason for hiding this comment

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

This gets loaded regardless of the cookie consent choice, so what functionality is listening out for that consent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, let me add that functionality.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@marksweb, I followed the guidelines here https://developers.google.com/analytics/devguides/collection/gtagjs/user-opt-out to disable the google tag on cookie reject.

@amakarudze amakarudze requested a review from marksweb February 5, 2024 20:00
Copy link
Collaborator

@marksweb marksweb left a comment

Choose a reason for hiding this comment

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

Ok, that looks good 👍

@marksweb marksweb merged commit 80eab99 into DjangoGirls:main Feb 6, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants