mozilla-rally / rally-web-platform

Mozilla Public License 2.0
5 stars 5 forks source link

[Bug] load firebase/ga analytics on every page load #603

Closed rhelmer closed 2 years ago

rhelmer commented 2 years ago

Describe the bug

The first time a user loads the RWP a redirect is issued, which strips the HTTP params including UTM codes. This redirect is done in JS, but since Firebase analytics aren't loaded this early, the user's first UTM params are not captured.

We can see in the debug view that individual analytics pings do contain the UTM info, but for reports it's the user's first UTM code that matters.

To Reproduce

  1. Go to https://members.rally.mozilla.org/signup?utm_source=test123
  2. observe redirect to https://members.rally.mozilla.org/signup
  3. check in analytics real-time dashboard and see that user's first source is "direct" not "test123"

Expected behavior

User's first source should be "test123"