Metrics

Get Campaign Metrics

Changed on

This endpoint retrieves key attribution metrics for a specified campaign, such as sessions, new contacts, and influenced contacts.

get/marketing/v3/campaigns/{campaignGuid}/reports/metrics

Request

  • Base URL
    https://api.hubapi.com
  • Auth
    OAuth 2
    Authorization codehttps://app.hubspot.com/oauth/authorize
    Token URLhttps://api.hubapi.com/oauth/v1/token
    Scopesmarketing.campaigns.read

Path parameters

campaignGuidstring required

The unique identifier of the campaign

Query parameters

endDatestring

The end date for fetching attribution data, in YYYY-MM-DD format. Optional. Example: 2000-01-27

startDatestring

The start date for fetching attribution data, in YYYY-MM-DD format. Optional. Example: 2000-01-20

Response

successful operation

influencedContactsinteger required

The number of contacts influenced by the campaign.

newContactsFirstTouchinteger required

The number of new contacts attributed to the campaign as the first touchpoint.

newContactsLastTouchinteger required

The number of new contacts attributed to the campaign as the last touchpoint.

sessionsinteger required

The total number of sessions generated by the campaign.

Changes