HubSpot Cookie

Hi @PSharma20med!

Thanks for the added context here!

When I check the cookies as I access a page with the HubSpot tracking code, I can spot the cookie coming through as the following:

__hstc=177999999.955595516594f3568f0fe66e85eee750.1693123835137.1693123835137.1693123835137.1

From the documentation we know:

  • It contains the domain, hubspotutk, initial timestamp (first visit), last timestamp (last visit), current timestamp (this visit), and session number (increments for each subsequent session).

Using this information, I can split the cookie above like so:

domain: 177999999 → as far as I can tell, this corresponds with an internalId
hubspotutk: 955595516594f3568f0fe66e85eee750
initial timestamp (first visit): 1693123835137
last timestamp (last visit): 1693123835137
current timestamp (this visit): 1693123835137
session number: 1

In my case, the timestamps all align with the date that I visited the page as it was the first recorded visit for this particular cookie. The timestamps are in epoch timestamps so you can use an epoch converter like https://www.epochconverter.com/ to get the datetime value of the timestamps!

You can also use Javascript to perform this conversion as seen here. One thing to note about these timestamps is that they are 13 digit epoch timestamps so do keep that in mind for your conversion!

Let me know if that’s closer to what you were looking for here :slightly_smiling_face: