Hello.
Is there any way to get contact page views from timeline via API ?
Thank you in advance!
Hello.
Is there any way to get contact page views from timeline via API ?
Thank you in advance!
If you just want the page views for a specific contact, get that contact by id and use
?property=hs_analytics_num_page_views
@Spencer thank you for advice.
But I need more details, e.g. Page Name, and maybe date and time of that activity.
Maybe you could advise where to find that information?
Or maybe someone could state that it`s impossible for now?
Thank you!
https://app.hubspot.com/property-settings/<PORTAL_ID>/contact
in here, you can select contact properties and get the actual names of those properties to add as parameters to your call. You can append each of those as &property=<PROPERTY_NAME>.
Note, the naming convention changes between some of the API calls, so the parameter property might be properties, but Iām pretty sure itās just property for all the contact APIs.
also, if you are wanting specific information about what they are viewing, I am not sure if that is possible with Hubspot, but someone who works here might know more.
$.ajax({
type:āGETā,
dataType: ājsonpā,
jsonpCallback:ācallbackā,
contentType:āapplication/jsonā,
url:āhttps://api.hubapi.com/content/api/v2/blog-posts/ā+BLOGID+ā?hapikey=**********ā
success: function (data) {} });
Try this you will get all information about that particular Blog.
I am looking to get data about each page on my website and which contacts are viewing them. Is there an API endpoint for getting that? At the end of the day I want to get access to all of the website views data.
Hey all - I think Iām trying to recreate a similar use case here.
The goal is to see a Hubspot contactās timeline based on SFDC Lead or Contact ID without using the Visualforce page. In particular, I want to see individual web pages visited, as if I was looking at the Hubspot timeline.
Iām thinking this is not currently possible with the response I saw over here:
How To Get Contactās Timeline Events via API? Contacts
Hi @nflaherty, I canāt speak for every team here at HubSpot, but I do know of some discussion surrounding making timeline data available via API. The biggest consensus is that as a rule, we strive to build APIs that allow third parties to build powerful apps that add features to the HubSpot platform, or provide more specialized functionality. With that in mind, we generally donāt prioritize APIs that can be used to directly replicate existing in-app functionality. While I can completely undersā¦
I realize this is necroposting, but this post is still a top result in Google, so here goes:
This information is readily available now via the Events API (using eventType=e_visited_page). The API returns specific pages, timestamps, and standard user agent/referrer information captured by Hubspot.