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

FMRPA-71 | Adding Google Analytics 4 #51

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Open

Conversation

JalenSowell47
Copy link

  • Added a function that listens for a change in route and tracks AngularJS route changes as page views in Google Analytics 4.
  • Added Google Analytics 4 tag that enables tracking of page views and other analytics for the application.
  • Updated a few of the page titles to get started on tracking different page views.
  • This initial commit uses the ID for the QA environment in Google Analytics 4, but this can be updated as needed for production or other environments.

@JalenSowell47
Copy link
Author

JalenSowell47 commented Apr 27, 2023

Also ran the app.js file through AI to clean up the formatting since I was adding new code and moving things around, but the only thing that was deleted was the old Google analytics tag. I can go back and revert the formatting if I need to. I removed the title from the head and replaced it with a function in the app.js file that sets it as the same title as default but listens for alternative titles (lines 195-199 on app.js)

@JalenSowell47 JalenSowell47 marked this pull request as ready for review May 2, 2023 17:57
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