APIs & Integrations

joparisot
参加者

Association between email activity and email events

解決

Hello,

I want to link an email (so an activity that has the type email) to email events but when I retrieve all email events, I can't see how I can know which email each event is associated to.

Is there a unique id enabling me to identify one email event as associated with a specific email?

Thank you

0 いいね!
1件の承認済みベストアンサー
IsaacTakushi
解決策
HubSpot Employee
HubSpot Employee

Association between email activity and email events

解決

Hi, @joparisot.

To clarify, are you using this endpoint and trying to determine which SENT, DELIVERED, OPEN, etc. events are associated with certain HubSpot marketing emails?

If so, you can use the emailCampaignId value for each event. Every campaignId reflects a specific send of a marketing email. You can cross-reference the IDs with the values from the Get all campaign IDs and Get campaign data for a given campaign endpoints.

Engagements with the type EMAIL, on the other hand, are not marketing emails. Opens and clicks for these emails cannot be retrieved with an API. This topic goes into a bit more detail.

Isaac Takushi

Associate Certification Manager

元の投稿で解決策を見る

0 いいね!
1件の返信
IsaacTakushi
解決策
HubSpot Employee
HubSpot Employee

Association between email activity and email events

解決

Hi, @joparisot.

To clarify, are you using this endpoint and trying to determine which SENT, DELIVERED, OPEN, etc. events are associated with certain HubSpot marketing emails?

If so, you can use the emailCampaignId value for each event. Every campaignId reflects a specific send of a marketing email. You can cross-reference the IDs with the values from the Get all campaign IDs and Get campaign data for a given campaign endpoints.

Engagements with the type EMAIL, on the other hand, are not marketing emails. Opens and clicks for these emails cannot be retrieved with an API. This topic goes into a bit more detail.

Isaac Takushi

Associate Certification Manager
0 いいね!