Hi,
For some reason the wordpress Hubspot plugin is inserts the hscript code in the body, and not in the header. This is affecting my HubSpot Analytics.
Is there a way to change where Hubspot inserts this code?
I would have thought by default it would insert it into <head> ?
Thanks in advance,
Ronnie
Hi, @pozitronic
Thanks for sharing your question. Let’s invite our community to join the conversation — hey @Mike_Eastwood @Josh @Jake_Lett, do you have any HubSpot + WordPress wisdom you can share with @pozitronic?
Thank you very much for taking a look! — Jaycee
Hi @pozitronic
The analytics code is always injected at the bottom of the body to help with page speed (test your page with Page Speed Insights).
If the code was inserted in the head it would be considered Render Blocking and penalise your site speed.
If you don’t want to use the WordPress Plugin you could manually insert the tracking code in your header but at the expense of First Contentful Paint (FCP). Not recommended.
Cheers
Mike