Setting up the Wistia - HubSpot Integration
Connect Wistia & HubSpot to supercharge your multimedia marketing. With our powers combined... well, you won't be Captain Planet, but you'll be ready to get those sweet, sweet leads and engagement data into HubSpot for automation.
Haven’t signed up for the integration yet?
HubSpot is a marketing platform designed to help increase leads and drive better engagement. They are the masters of inbound marketing … heck, they invented it!
This article is all about configuring the Wistia - HubSpot integration for collecting leads and sending viewing and listening data into contact records. If you’re generally curious about what this integration can do, here’s an overview of the HubSpot integration’s features.
Now let’s get to setting up the integration!
Let’s start with a brief overview. There are 3 key steps to getting fully integrated:
- Connect the integration in your Wistia account. This allows us to request your lists and forms, and send leads and engagement data into HubSpot.
- If you’re tracking a video, set up a Turnstile or add a HubSpot form directly to a video. If you’re tracking an audio episode, set up a HubSpot form to take a user to a page with that audio episode embedded on submission, or set up a form on the same page as the episode. Turnstiles and HubSpot forms are how we identify users for proper tracking.
- Embed your media on a page with a HubSpot tracking script. The Wistia player and HubSpot script work together to identify users and track their activity for display on HubSpot contact records.
The first step is usually a one-time thing, and thereafter you’ll only need to repeat steps 2 and 3 for each media you want to track.
Head on over to the integrations page within your Wistia account settings: Account > Settings > Integrations
Scroll down to the Marketing Automation Integrations section, and click on HubSpot v2 (with custom forms).
When you click Connect, you’ll be prompted to log into HubSpot. Once you log in and authorize the integration, it will show as ✔ Connected and ✔ Primary. Only one integration can be set as Primary, indicating HubSpot as the active integration on your account.
It’s that easy! This will authorize Wistia to request your HubSpot lists and forms for display within videos. Wistia will also be able to create and update contact records to send leads and engagement data into your HubSpot account. Note that HubSpot does not send leads into Wistia, so the next step will help us identify users.
With the HubSpot integration connected, we’re one step closer to enriching our leads with video viewing data for advanced automation. Now we need a method of identifying new and known leads.
The first option is the Wistia Turnstile, which will collect lead information in your Wistia stats and send those leads directly to HubSpot.
- From the Customize panel, enable Turnstile and set it to the desired time in your video.
- Select a HubSpot list for the Turnstile to send collected leads. A list must be selected for Turnstile entries to display within HubSpot. Only Static Lists are available for Turnstile submissions.
- Click the Save button!
With a Turnstile added to the video and connected to a HubSpot list, you can move on to the final step: embed the video on a page with your HubSpot tracking code to start collecting leads!
If you’d prefer to use a HubSpot form instead of a Turnstile, the following section has everything you need to know.
Looking for more flexibility around form fields? Our HubSpot v2 integration has the option to embed HubSpot forms within your Wistia videos. Just like Turnstile, form submissions within a video will serve to identify your viewers so they can be tracked properly by the integration.
Using a HubSpot form in a Wistia video provides more control over the form fields and appearance, just like a normal HubSpot form. You can even employ custom styling from within the HubSpot forms editor! The only drawback to a HubSpot form compared to Turnstile is that the data will only be sent to HubSpot, and the leads will not show up within Wistia stats.
Once the integration is enabled, a HubSpot Forms section will appear in the Customize panel. From there, you can choose which form to display in your video, when to display it, and add helpful prompt text to encourage viewers to complete your form. Here’s what that looks like:
Whether you’ve chosen to use HubSpot forms or Turnstile to identify your audience, you’re now ready for the final step — embedding your video for tracking!
The real magic of this integration involves the Wistia player and the HubSpot tracking script working together. First you’ll need a webpage set up with your HubSpot tracking script. Embed your media on that page and you are good to go.
If you’re embedding on a HubSpot landing page or a HubSpot COS page, that script should be installed for you automatically. Wistia media pages (in your account) don’t have the HubSpot tracking code on them. This is why you need to embed your medias out in the wild in order to start pulling data into HubSpot.
Tracking listening data for podcast episodes or other audio files works somewhat differently from tracking videos since you can’t add a Turnstile or a HubSpot form directly to an audio embed. That said, a Turnstile or form submission is always necessary to successfully identify listeners as known leads, so they’re still a part of the equation here. There are two methods for tracking listening data.
The most reliable way is to embed a HubSpot form on a landing page. On submission, the form should take your user to a page where your individual audio episode or audio-only Channel is embedded. You’ll want to ensure that both the page with the form and the page with the embed has a HubSpot tracking code on it.
The other option is to embed the HubSpot form itself on the same page as the episode or Channel. This is less reliable since a user may listen to your content without submitting the form, in which case they wouldn’t be identified or tracked. Again, this page should have a HubSpot tracking code on it.
When visitors subscribe to a Channel, they’re prompted to fill out their name and email address similar to how they would for a Turnstile. However subscribing to a Channel won’t identify a user as a known lead for the purposes of tracking listening data. You can sync your subscriber list with a HubSpot list, but this will only send contact data to HubSpot, not tracking data. Users still have to be identified by a Turnstile or HubSpot form in order for listening data to be tracked.
The real heart of this integration is getting engagement data to show up in contact timelines. The Wistia - HubSpot integration uses HubSpot’s powerful Timeline API to pass over data collected from your embedded medias. Once you have this integration set up and the medias embedded for tracking, we’ll send the following events for every identified user who plays the media on your page:
- Engagement milestones: Played 1% (clicked play), 25%, 50%, 75%, and 100%.
- Links clicked in videos (videos only)
- Turnstile or HubSpot forms submitted (videos only)
The “Played X%” events are milestones, so they only update at the intervals listed above. This means that if you see someone with a “Played 1%” event, they played between 1% and 24% of the media (at 25%, it would update to the next milestone). For a more detailed look at their engagement data, you can actually access the Heatmap of their session within the HubSpot timeline.
One of the coolest things about this integration is that you’ll see video heatmaps in your contacts' timelines. Click View Video and Heatmap to display them:
This adds some extra detail to your available metrics, showing the exact percentage of the video that was watched, which portions may have been re-watched, and even a preview of the video itself. While the Heatmaps are not directly used for automation, they provide an in-depth look at the viewing behavior of individual contacts.
The Wistia events sent to HubSpot can be used for segmenting lists and building automations. For example, you could set up an “Active list” to only show contacts who have watched 75% of a media, indicating their interest in your content. Or you could include a Call-to-Action on your video, and target viewers who convert on that link.
HubSpot refers to these events as filters for your Active lists, and they are applied at multiple levels.
First we’ll select a broad, event-based filter around which to build the automation. They are each labelled within Wistia Hubspot V2:
- Annotation Click
- Call to Action Click
- Viewer identified
Annotation, Call to Action, and Turnstile filters are all based around fairly specific actions unique to videos; clicking an Annotation Link, converting on a CTA, or submitting to a Turnstile. The Play filter is the most versatile, as it opens up choices for segmentation based on how much engagement has happened, utilizing the “Played X%” events.
Once you’ve chosen the top-level event to focus on, you can configure your automation with more specific filters. There are a wide array of secondary filters to use because HubSpot displays all available Wistia properties. However some are more practical than others:
- Media ID - The ten-character, alphanumeric ID of the media within Wistia. For example, the Media ID of
4kmqltm95j. This is the best way to target activity around specific medias.
- Media Name - The name of the media within Wistia. Keep in mind this is a less reliable option since media names can be changed at any time, and in many cases using Media ID would be preferable.
- Media URL - The URL where the video is embedded alongside your Hubspot tracking code. Useful for separating activity from specific landing pages or posts.
- Occurred - Simply put, “this event happened." It is then further constrained by a date or date range, for example “is before” or “is after” 11/5/2020. Use this for segmenting contacts based on a specific time period.
- Percent Watched - Used for segmenting based on the “Played X%” events. For example, Percent Watched → is greater than or equal to → 50% would segment contacts who have played at least 50% of your medias.
Some cool things you can do with this:
- Find everyone who loaded a particular media but didn’t play it and send that media out to them in an email.
- Nudge users who’ve only played 25% of a media.
- Know who your most engaged users are.
- Follow up with users who clicked on annotation links and Calls to Action.
These filters are included with the data we send to Hubspot, however they are largely irrelevant for automation as they are specific to data on the Wistia side:
- Viewing Session ID
- Hook ID
- Event UUID
With Media Bridge enabled for your HubSpot integration, you’ll see two Wistia modules in HubSpot to select media — one for email and one for a landing page.
Instead of searching in Wistia for the media you want to add to a Hubspot email or landing page, you can search your entire Wistia library and embed medias without needing to leave HubSpot.
If you have your HubSpot integration connected and would like to turn Media Bridge on, you’ll need to reauthenticate your integration and make sure you check off the Media Bridge check box on the Integrations page within your Wistia account.
If you don’t have the HubSpot integration, you can find more information on your Integrations page, or reach out to our Sales Team here.
Once you reauthenticate your integration, or set up your integration with Media Bridge capabilities checked off, you’re just about there! Within HubSpot, you’ll either need to create an email or landing page to see this in action.
Head into HubSpot and create a new email. From here, search for the Wistia module by clicking “More” under “Content.”
Drag the Wistia module anywhere into your email and use “Select from Wistia” to browse all synced medias to embed into your email.
Within HubSpot, your medias will reflect the same organizational structure from your Wistia account.
You can also search for a specific title, and filter the media type to see video or audio.
Once selected, you can change the play button color, add padding around the media, and even use a custom link to link to a landing page where the media is embedded.
Now, you’re good to go!
This process is very similar to adding medias to emails, but let’s go over the details!
First, you’ll want to search for the Wistia module by cliking “More” under “Content.”
Drag the Wistia module anywhere on your page and click “Select from Wistia” to browse all synced medias. This includes both audio and video. You can only browse one media type at a time though, so make sure you have the correct media type selected in the Media Bridge browser.
When you’ve selected your media and you’re done customizing it, make sure to hit “Apply changes” to see the media in your landing page preview.
You’re all set!
If you need to embed a media on a HubSpot website or landing page, then the great news is that HubSpot offers native support for Wistia medias! Or maybe you want to add media to a blog post to jazz it up? HubSpot’s got you covered there, too.
Once you’ve created a new website or landing page in HubSpot, or if you’re editing an existing one, just add a Rich Text Module to the page. Click to edit the module, select Advanced > Source Code, and you can copy/paste the Wistia embed code directly into the source code editor.
If you’re embedding a video, then we’ve got a short cut. Instead of opening the source code editor, just click to edit the module, and then copy/paste your video’s media page URL into it. That’s it! HubSpot will automatically grab the video from your Wistia account and embed it.
When you create a new blog post in HubSpot, or if you’re editing an existing one, click to edit the Custom HTML module. Then you can copy/paste your Wistia embed code directly into the HTML text box. Both the standard and fallback options will work here.
If you’re looking for help with the first version of the Wistia - HubSpot integration, head on over to the HubSpot v1 page. We also have a section all about migrating from Hubspot v1 to Hubspot v2 when you’re ready to make the switch.
The short answer is no, you don’t need a Turnstile or form on every video, but it does make the integration a lot more reliable.
As explained in the Turnstile section “tip”, this tracking relies heavily on cookies being set in a viewer’s browser, and those cookies being present any time someone watches your video. These cookies are set upon form submission, so having forms in and around your videos is the best way to ensure that leads are being tracked as expected.
Since cookies don’t carry over between browsers/devices, this creates the possibility for tracking loopholes. For example:
Alyssa, using her work computer, submits to a HubSpot form on one of your landing pages. She then watches a video on a different page set up for integration tracking. By the time she leaves your site, Alyssa has a contact record in HubSpot with her lead data, and you can see her viewing data within the activity feed.
Later that evening, Alyssa is home from work and decides to watch more of your video content. She uses her smart tablet which is her preferred device for personal use. Alyssa, on this different device, goes straight to the video content without completing a form, and watches several videos. This data does not show up in the contact record because this new device does not have a tracking cookie to identify Alyssa as a known lead.
Think of it this way: a Turnstile or Form isn’t always required, but any opportunity for someone to skip or ignore your Turnstile/Form is a possibility that their data may not be passed into HubSpot.
How do I track listening data if I can’t overlay a Turnstile or HubSpot form right on an audio episode?
Even though you can’t put a Turnstile or a HubSpot form on an audio episode, it’s still necessary that your listeners submit one for tracking to work. This sounds counterintuitive, but the good news is that HubSpot tracking can cast a wide net.
As long as the Turnstile or form is submitted on a page with a HubSpot tracking code, and as long as your audio episode is embedded on a page with a HubSpot tracking code, then we can capture listening data from your audience and send it to the correct contact record in HubSpot. They can be the same page or different pages - tracking will work either way.
The trick here is to ensure that the Turnstile or form is filled out before the user listens to your audio episode. The best way to ensure that is to embed a HubSpot form on one page and on submission, have it take the user to another page where the audio episode is embedded.
The HubSpot integration has a few moving pieces that have to come together for tracking to work as expected. Here is a checklist of things to look out for when the data isn’t showing up:
To be on the safe side, make sure you’ve followed all 3 key setup steps. Each of these steps has an important function for integration tracking. In particular having some kind of Turnstile/form involved for identification, and embedding your media on a page with the HubSpot script are the steps most often overlooked.
Under Account -> Settings -> Integrations, make sure HubSpot is set to Primary. Only the Primary integration will receive data from Wistia. To fix this, click on the integration to expand its options, and select Make Primary.
In order to see Wistia events/data, you need to enable the “Wistia” filter, under Integrations.
If you are using an iframe embed on your page, it’s possible that your CMS has removed the E-v1 script from the embed. The E-v1 script should be after the
<iframe> element of the embed and looks like this:
<script src="//fast.wistia.net/assets/external/E-v1.js" async></script>
If there isn’t an instance of E-v1 outside of the iframe, the Wistia and HubSpot scripts will not be able to get the correct information from each other.
The good news is that this is easy to fix by adding the E-v1 script to your page. We recommend adding it to the
<head> element of your page. Feel free to copy the example above and paste that right into your page.
As long as you’ve followed the steps on this page, HubSpot tracking will work with just about any embedded instance. That said, if you’ve followed everything here and you’re still not seeing engagement data, it’s time to check what container you’ve embedded your video in.
If you’ve embedded a Wistia iFrame within another iFrame container, tracking will not work. It will break any on-page tracking, because it obscures the ability for E-v1.js to determine which actual page the video is embedded on.
An extra iFrame will prevent the external E-v1.js script from seeing that there is a
wistia_embed element on the page (on the Wistia iFrame embed). E-v1.js needs to be able to interact with the Wistia player, and the additional iFrame essentially acts as a barrier between the E-v1.js script and the
wistia_embed container. The best way to solve this is to remove the additional iFrame completely.
Styling issues can happen when “Set as a raw HTML form” is selected. If you uncheck this box the Wistia styles will be applied.