-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: develop
Are you sure you want to change the base?
Conversation
JalenSowell47
commented
Apr 27, 2023
- 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.
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) |