Archived topic
Google Tag Manager (GTM)
3 replies · Started by Mitchell on October 17, 2017
Hello,
GTM asks me to: Paste this code as high in the <head> of the page as possible: and then: Additionally, paste this code immediately after the opening <body> tag:
Can you please tell me the process to go about doing this in GP?
Thanks,
Mitchell
Hi there,
You can use the wp_head hook:
https://docs.generatepress.com/article/wp-head/
https://docs.generatepress.com/article/hooks-overview/
Hi guys.
When I try to put scripts in the wp_head hook, when I save I get a 'Oops! That page can’t be found' error.
https://liquidtechnology.eu - Any ideas?
Thanks
Mark.
There are two parts of code GTM.
First part should be in wp_head, second part would be in Before Header hook.