Tagged: child theme, Hubspot, Tracking Code
Hi!
In addition to the Google Analytics code, I need to enter a second tracking code for HubSpot. I tired entering it right under the Google code in the Child Theme setting of my enfold theme. However, the change does not appear in the source code.
Where do I need to add the code so it correctly tracks?
Thanks a bunch!
Hey blubbline!
As you have a child theme, please do copy the footer.php file, find
</html>
and paste that code just before it.
Let us know if that works for you, as should.
Regards,
Basilis
Thanks!
I assume I need to go into the footer.php under wp-content > themes > enfold-child ?
I could not find ‘</html>’ in there.
Hi,
Instead of editing the footer.php file, use the wp_footer filter. Example: https://kriesi.at/support/topic/insert-java-scripts-in-body/#post-579587
Best regards,
Ismael