mozilla / fx-private-relay

Keep your email safe from hackers and trackers. Make an email alias with 1 click, and keep your address to yourself.
https://relay.firefox.com
Other
1.44k stars 168 forks source link

MPP-2822: add gtag to Layout and update gaEvent hook to ping both GA endpoints #4796

Closed groovecoder closed 1 week ago

groovecoder commented 1 week ago

Add GA4

Screenshot

image

How to test

  1. Checkout this branch
  2. In frontend/ run npm run dev
  3. Go to http://localhost:3000/
    • [ ] In the network inspector, verify a request to www.googletagmanager.com is sent
  4. Go to https://analytics.google.com/analytics/web/#/p314403930/realtime/overview
    • [ ] Verify you see your traffic in the realtime report
  5. In frontend/ run npm run build
  6. In app root, run python manage.py collectstatic
  7. In app root, run python manage.py runserver
  8. Go to http://127.0.0.1:8000/
    • [ ] In the network inspector, verify a request to www.googletagmanager.com is sent
  9. Go to https://analytics.google.com/analytics/web/#/p314403930/realtime/overview
    • [ ] Verify you see your traffic in the realtime report

Checklist (Definition of Done)