Archived topic
google tag manager
7 replies · Started by liorsade8 on March 27, 2018
hello,
where and how do i put google tag manager (also if i'm using a theme child)?
how can i put it with code?
and also is there a recommended plugin instead of code?
thanks
Hi there,
This should help: https://generatepress.com/forums/topic/google-tag-manager-gtm/#post-486806
i saw this post... not helping and to much complicated.
please help understand.
thanks
Hmm which part are you having trouble with?
The first part of the GTM code should go into wp_head and the second part of the code should go into before header hook.
what and where is wp_head?
with child theme i only have:
style.css
functions.php
files....s
so?
This should help: https://docs.generatepress.com/article/hooks-overview/
so u mean i put the codes into hooks?
Yes.