In this article, you’ll learn: |
About HubSpot
If you are using HubSpot to collect your website data, integrating with VWO will help you collect your landing page's visitor data and all the variations you create in your VWO tests. You can use this data to compare variations, get deeper insights from your VWO test, and implement changes to boost your conversions.
Integrating VWO with HubSpot is only available if you're on the Enterprise plan of HubSpot. This is because the custom behavioral events needed for this integration to work are allowed to be processed by HubSpot in its Enterprise plan only.
To enable this integration, you must ensure that both the VWO SmartCode and HubSpot tracking code are enabled on your website. The end-to-end process of integrating HubSpot with VWO is a two-step process.
Once you integrate HubSpot with VWO, you can view the event’s report in your HubSpot account, as explained here.
Enabling the HubSpot Integration for Your VWO Account
To enable the VWO-HubSpot integration for your VWO account, follow this:
Procedure
-
Log in to your VWO account.
-
From the left panel of your VWO dashboard, go to Configurations > Integration.
-
Click on the HubSpot integration and enable it. Once enabled, the HubSpot screen within the VWO’s Integration section looks like this:
Once the integration is enabled, you can choose to send VWO experiment data to HubSpot at a campaign level. By default, the HubSpot integration is enabled for the new VWO testing campaigns.
If you wish to enable the HubSpot integration for your existing campaigns, you can edit your campaign settings as shown below. -
Now, you will be taken to the Config tab, where you can configure your VWO data to be pushed to your HubSpot account. The following are the types of data that you can send to your HubSpot account:
-
Push Testing and Personalize Data to HubSpot - Allows you to send your VWO Testing and Personalize campaign data to HubSpot.
- Push Insights Data to HubSpot - This option allows you to send your VWO session recordings to HubSpot. Click here to learn more about it.
-
-
To proceed with the export of your VWO Testing and Personalize campaign data, select the Push Testing and Personalize Data to HubSpot option and configure the custom event mode that applies to your HubSpot account from the following options:
- Custom Behavioral Event (Legacy)
- Custom Events
- If you’re selecting the Custom Events mode, you need to supply the corresponding Tracking ID in the Event Internal Name field that appears. The Tracking ID can be fetched by performing the steps mentioned here.
Creating and Viewing Events in Your HubSpot Account
In order for your HubSpot account to receive the campaign data pushed from VWO, you need to set up the VWO campaign data as events in your HubSpot account. Use either of the following modes that fits you to proceed with the event creation process in HubSpot:
Custom Events Mode
If you’re using the new custom events mode in HubSpot, perform the following steps to set up the events in your HubSpot account to receive your VWO campaign data:
-
Go to Reporting & Data and click Custom Events. The Custom Events page appears.
- The Overview tab of the Custom Events page displays the events that you have created in HubSpot. To create an event for VWO, click on the Create an event button at the top-right.
-
In the Choose how you want to create event data modal that appears, select Send via API.
-
In the DETAILS section of the custom event creation page, enter the following details and click Next:
Field Input Event name VWO Description Description of the event Associated Object Contacts
-
In the PROPERTIES section, click Custom string property, enter the Property name as Campaign, and click Done.
- Repeat the previous step twice, once for Variation properties and once for Experience properties. Enter Variation as the Property name for the Variation property and Experience for the Experience property, then click Done.
- Click Next.
-
In the TRACKING ID section, click the Copy button to copy the Tracking ID that appears and click Done.
- Paste the tracking ID into the Event Internal Name field in the Config tab of the HubSpot integration page in the VWO app.
Now, HubSpot can receive the campaign data pushed from VWO, which can be repurposed further.
Specifications of VWO Experiment Data Sent to HubSpot (Custom Events Mode)
VWO uses the trackEvent API of HubSpot to send VWO experiment data to HubSpot. The data is sent with the following specifics:
Parameter | Name | Value |
Event Name | vwo | - |
Event Property |
Campaign | “{CampaignID}:{CampaignName}” |
Variation | “{VariationID}:{VariationName}” | |
Experience | “{Campaign ID}:{CampaignName}:{VariationID}:{VariationName}” |
Viewing Events in Your HubSpot Account (Custom Events Mode)
To view events, perform the following steps:
- Log in to your HubSpot account.
-
To view the report corresponding to the events you created in HubSpot, go to Reporting & Data > Custom Events.
Legacy Mode
If you’re using the legacy custom behavioral event mode, perform the following steps to set up the events in your HubSpot account to receive your VWO campaign data:
-
Log in to your HubSpot account.
-
From the HubSpot dashboard, go to Reporting & Data > Custom Behavioral Events (Legacy).
-
To create an event, click Create event present on the top right corner of the page.
-
In the Create event section, enter the event name as VWO. You can leave the Tags field blank.
-
Choose the Event Type as Custom Event and click Next.
Specifications of VWO Experiment Data Sent to HubSpot (Legacy Mode)
VWO uses the trackEvent API of HubSpot to send VWO experiment data to HubSpot. The data is sent with the following specifics:
- ID: “vwo_${campaignName}_${variationName}”
- campaignName: The Campaign Name configured within VWO
- variationName: The Variation Name configured under the campaign within VWO.