APIs & Integrations

MFall13
Contributor | Platinum Partner
Contributor | Platinum Partner

Analytics for CRM Dynamic Pages

I've created a site built using dynamic pages from CRM objects and now attempting to tap into analytics for each dynamic page via the 

/analytics/v2/reports/:content_type/:time_period API. 

I'm making a simple GET request to the following endpoint, but nothing is being returned: 

 

https://api.hubapi.com/analytics/v2/reports/standard-pages/{{ pageId }}/sources/total?hapikey={{ hapikey }}&start=20180101&end=20221001

 

{{ pageId }} does look slightly different for dynamic CRM pages than a standard website page... instead of just a number, it looks something more like crm-XXXXXXXXXXX-{{ objectType }}-{{ objectId }}. 

Bottom line... how can I access analytics for dynamic CRM pages? 

Thanks!

0 Upvotes
1 Reply 1
ChehakWadhdwa
Member | Diamond Partner
Member | Diamond Partner

Analytics for CRM Dynamic Pages

Hey @MFall13 

 

 This is due to the change in HubSpot API usage policy change.

What you can do is to go to your HubSpot Account on which you have defined your API call and create a private app there and use Bearer Token rather than API.

 

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.

0 Upvotes