<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic New features for Analytics API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/New-features-for-Analytics-API/m-p/224001#M23855</link>
    <description>&lt;H2&gt;What's happening?&lt;/H2&gt;
&lt;P&gt;Today, we're launching two new features for the Analytics API: Event analytics and support for analytics views.&lt;/P&gt;
&lt;P&gt;The Analytics API now supports pulling data for your &lt;A href="https://knowledge.hubspot.com/events-user-guide-v2"&gt;analytics events&lt;/A&gt;. This would include getting the data for any custom events created using the &lt;A href="https://developers.hubspot.com/docs/methods/tracking_code_api/javascript_events_api"&gt;JavaScript&lt;/A&gt; or &lt;A href="https://developers.hubspot.com/docs/methods/enterprise_events/http_api"&gt;HTTP&lt;/A&gt; Event APIs.&lt;/P&gt;
&lt;P&gt;The Analytics API now also supports filtering by your analytics views. Any views you've &lt;A href="https://knowledge.hubspot.com/articles/kcs_article/reports/use-the-sources-report#changing-your-view-in-sources"&gt;created in HubSpot&lt;/A&gt; can be used as a filter when pulling analytics data.&lt;/P&gt;
&lt;H2&gt;What's changing?&lt;/H2&gt;
&lt;P&gt;The existing endpoint to &lt;A href="https://developers.hubspot.com/docs/methods/analytics/get-analytics-data-by-object"&gt;pull analytics data for objects&lt;/A&gt; now supports events as an additional object type. There is also a &lt;A href="https://developers.hubspot.com/docs/methods/events/get_events"&gt;new endpoint&lt;/A&gt; that lets you get the metadata for your events.&lt;/P&gt;
&lt;P&gt;The existing endpoints also now support an additional query parameter: &lt;CODE&gt;&amp;amp;filterId=&lt;/CODE&gt;. Include this parameter with the ID of an analytics view to filter the returned data for that view. There is also a &lt;A href="https://developers.hubspot.com/docs/methods/analytics-views/get-views"&gt;new endpoint&lt;/A&gt; that lets you get the metadata for views.&lt;/P&gt;
&lt;H2&gt;When is this happening?&lt;/H2&gt;
&lt;P&gt;These features are currently live and can be utilized immediately.&lt;/P&gt;
&lt;P&gt;Please don't hesitate to post any questions or concerns in the comments below.&lt;/P&gt;</description>
    <pubDate>Sun, 09 Sep 2018 17:59:59 GMT</pubDate>
    <dc:creator>Dadams</dc:creator>
    <dc:date>2018-09-09T17:59:59Z</dc:date>
  </channel>
</rss>

