hubspot tracking code

Hello

I paste the tracking code on my website (wordopress) but the data of the contact sessions don’t show on the hubspot contact record.
I have verified the hubspot id, the website domain is set on hubspot.

Wht should I do to investigate?

Thank you

Emmanuel

Hi @EBouf,

The other element here is that HubSpot has to be able to correlate your contact with their session, which happens via a cookie. The most straightforward example of this is a form submission. When the visitor is on your site initially HubSpot knows there’s a visitor there, but they are not associated with the contact record. Once that visitor submits a form, HubSpot now knows that the contact in your CRM (either new or previously existing) is associated with that session, and it would show the pageviews for the future and all past pageviews that it can confirm are associated with the same visitor (through the cookie).

Here’s more on how the tracking code works.

In short, you may have installed the tracking code exactly as it should be, but if HubSpot cannot associate the contacts with their activities, it won’t show that activity on the HubSpot contact record.

Josh

Hi Josh,

Thank you for your interesting information.

It seems to show some data now… I will keep on eye on that, little surprised by the fact there is only very few sessions data.

Hi Emmanuel,

If your HubSpot tracking code is installed but session data isn’t showing, here are a few quick things to check:

Code placement – Make sure it’s added just before </head> on all pages. like we have added into Palmist.io

Cookie consent – If you use a cookie banner, it must allow marketing cookies before tracking works.

Form type – If you’re using non-HubSpot forms, enable tracking under Settings > Marketing > Forms > Non-HubSpot Forms.

Check with HubSpot’s Chrome extension – It helps verify if the tracking code is working.

Ad blockers – Try in incognito mode to rule out extensions blocking scripts.

Hope this helps!

Hi!

Thank you for all this information.
I have checked all the things but unfortunately it still doesn’t work.
I have for instance moved the script placement (before </head>) instead of before </body> as I have read first on a Hubspot support page.
I had first tried with the Wordpress hubspot plugin (my website is a Wordpress), it worked but break the contactform7 notification which I still need, so I de activate it).

I would find a way…