APIs & Integrations

zohaib
Member

Track and identify visitors,Track page

Hello!

How can be I able to track by this individual page visits, like blog posts, landing pages and website visits (running on a different system, but the Hubspot tracking code is embedded).

Which Api I used.. and where i embed the javascript functions to Track Visitors.

0 Upvotes
1 Reply 1
lscanlan
HubSpot Alumni
HubSpot Alumni

Track and identify visitors,Track page

Hi @zohaib,

 

It sounds like you're trying to track analytics info (page views for example) for visitors to your non-HubSpot-hosted pages? Is that what you mean by a different system? Have you taken a look at the Tracking Code API? You can find documentation for it here: https://developers.hubspot.com/docs/methods/tracking_code_api/tracking_code_overview. In particular, read the section labeled "How do identities work?" . Beyond identifying visitors to your non-HubSpot-hosted pages, is there some other reason you'll need to use the API? By just adding the tracking code to those pages, the tracking information will get stored in a visitor's cookie. And here's some information on identifying visitors using the API: https://developers.hubspot.com/docs/methods/tracking_code_api/identify_visitor.

 

If you run into any specific questions or if I misunderstood what you're asking, feel free to let me know.

 

Leland Scanlan

HubSpot Developer Support
0 Upvotes