- This topic has 1 reply, 2 voices, and was last updated 4 years, 8 months ago by .
- The topic ‘Adding Google Tag Manager Through Functions’ is closed to new replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I'm wanting to implement Google tag manager and know how to correctly set everything up but am not sure how to best get the tracking code placed in top of the header and top of the body of every page.
The Genesis header and footer scripts outputs put them at the bottom rather than top and I've been seeing where this can cause some issues.
This code will output immediately before the closing </head> tag in the document source.
This code will output immediately before the closing </body> tag in the document source.
https://developers.google.com/tag-manager/quickstart elaborates on where to place.
The only way I believe to drop the code on every page of the site is through Functions.php but I'm unsure of how to implement.
Any help is greatly appreciated.
I'm using Altitude Pro Themehttps://hubtap.com
© 2024 WPEngine, Inc.