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

Move all GA and GTM code to end of body tag #281

Merged

Conversation

bryanlandia
Copy link
Contributor

@bryanlandia bryanlandia commented Jul 13, 2023

Change description

GTM/GA loading is interfering with the YouTube API. While Google likes you to put a script tag at the top of <head> it is supposed to all work even in body, just means there is a bit more delay in initializing and sending data to Google, and could mean some tracking could get missed if a user bounces off the page before it completes loading. Given the use case is generallly interested users, it's probably fine.

So the code is moved out of head-extra and added to body-extra. Seems to be OK, testing on devstack, but it's a little bit hard to get a good real-world use case so I'd like to try it on Tahoe Staging.

Type of change

  • Bug fix (fixes an issue)
  • New feature (adds functionality)

Related issues

https://appsembler.atlassian.net/browse/ENG-97

Checklists

Development

  • Lint rules pass locally
  • Application changes have been tested thoroughly
  • Automated tests covering modified code pass

Security

  • Security impact of change has been considered
  • Code follows company security practices and guidelines

Code review

  • Pull request has a descriptive title and context useful to a reviewer. Screenshots or screencasts are attached as necessary
  • "Ready for review" label attached and reviewers assigned
  • Changes have been reviewed by at least one other contributor
  • Pull request linked to task tracker where applicable

@bryanlandia bryanlandia requested a review from a team as a code owner July 13, 2023 00:51
@bryanlandia
Copy link
Contributor Author

btw, these checks never complete

@bryanlandia bryanlandia merged commit a36ee01 into juniper/tahoe Jul 13, 2023
1 check failed
@bryanlandia bryanlandia deleted the bugfix/gtm-with-video-measurement-breaks-video-load branch July 13, 2023 16:45
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