Archived topic
HotJar Tracking Code
3 replies · Started by pairfum on August 2, 2018
Dear Tom,
Where can we place the HotJar tracking code in GeneratePress?
https://help.hotjar.com/hc/en-us/articles/115009336727-Manually-Adding-the-Tracking-Code
It is supposed to be in the header before the closing </head> tag and we would rather not add another plugin.
We would prefer to place it in one of the Child Theme files, as this keeps all the custom codes in one place.
What would be the best solution?
Kind regards,
Pairfum
https://www.pairfum.com
Hi there,
wp_head hook would be the best way.
It is in the Hooks module but you can also add it as snippet:
https://docs.generatepress.com/article/using-hooks/
Let me know if this helps :)
No problem :)