You can enrich your HubSpot contact records with AB Tasty campaign data by pushing it via a custom behavioral event using the HubSpot API. This allows you to segment, personalize, and automate marketing actions based on which AB Tasty experiments or variations your visitors see.
Use Case
Push the following data to HubSpot when a visitor becomes identifiable (e.g. after form submission or login):
-
Campaign name
-
Campaign ID
-
Variation name
-
Variation ID
-
Emotions AI segmentation (EAI) (if available on your package)
Step-by-Step Guide
1. Create a custom event in HubSpot
- Go to Settings > Data Management>Custom Events
- Click on Create event
2. Select how to send event data
-
Select Send via API method
3. Enter events details
- Enter
ABTASTY
as the event name - Add the following event properties as String Property
3. Create 5 Properties using this naming convention (repeat the same process for each property)
-
abt_campaign_name
(Text) -
abt_campaign_id
(Text) -
abt_variation_name
(Text) -
abt_variation_id
(Text) -
abt_emotions_ai
(Text) // If you have an Emotions AI License
Once completed, it should look like this
4. Activate Default event properties (Optional)
If you want more Linked Data. You can activate the Default event Properties
5. Link to Object
- Choose Contact as a primary object
6. Configuring Tracking ID
Save the Tracking ID and save the creation of your custom event. You'll need it to create our AB Tasty Connector (You can find it again on the HubSpot event details page)
7. AB Tasty configuration
Once everything is ready in HubSpot, you can set up the connector in AB Tasty:
-
Navigate to the Integration Hub within your AB Tasty account.
-
Use the search bar to find the HubSpot Card in the PUSH section.
-
Click on Create a Connector.
-
Enter a name for your new connector.
-
Paste the HubSpot Tracking ID you generated from the previously created event into the appropriate field.