Tagged: functions, functions.php, google tag manager, GTM, Hooks
Hey there,
i did not find any proper solution for adding the GTM Codes with enfold.
There are 2 Codes that need to be added:
– One as high as possible in the header
– One right after the opening <body>-Tag
What is the right way to implement these codes with “add actions” or hooks within the functions.php?
I want to avoid copying for example the header.php to the childtheme and prefer to do it via functions php.
Thanks for help
Hey alexanderduenchem,
Here are the hooks and filters available in Enfold
Here are some threads to consider:
https://kriesi.at/support/topic/google-analytics-tracking-code-not-in-head/#post-878487
Best regards,
Victoria