-
Notifications
You must be signed in to change notification settings - Fork 35
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 analytics code to preload #1429
Conversation
In my tests, the ['async'] attribute is not rendered with this - I had to use ['async' => 'async'], which is valid notation for the script. Our code also inserts type=text/javascript into the script signature. Not a big deal. |
changed 'async' => 'async'
updated the 'async' => 'async' and making it ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verify the proper tag values are being passed to the methods. The UA snippet has also changed when checking on GA.
Move the UA code to the preload. This code also looks for the value of the Google Analytics tag and decides based on that whether to add the old UA or the new GA4 script