A friend wanted to know how to track video view percentages, and get this information into his CRM so he could send targeted emails to contacts based on how much they watched his video. For example if a contact only watched the first 20% of a video, he wanted to follow up with them.
There are a couple of tools around that day this already. You can generally do this with Google Tag Manager and write custom code to connect to your CRM or PlusThis and integrate directly with a handful of CRMs.
While PlusThis looked like a good solution we didn’t want to spend money each month to just use a single feature of their service. So I decided to code up my own solution.
My friend is using ActiveCampaign as his CRM and email service provider so I decided to whip something together to track Wistia video view percentages with ActiveCampaign.
To set it up you’ll need a bit of technical knowledge but not much. Here is how to set it up with ActiveCampaign.
- In ActiveCampgain enable event tracking in
settings->Tracking->Event Trackingand add a
- Remix my glitch project by clicking here. Put in your
.envfile, you can find these in the Event Tracking settings area.
- Add your glitch project created in the step above to the
acProxyUrlin the config at the bottom of wistia-ac-track.js.
- Place wistia-ac-track.js on any page you want to track wistia videos.
- Make sure the link on the page you are tracking contains a url parameter
acEmailwith the value being an email in your ActiveCampgain account. So for example
And that’s it. I know there are quite a few ways to make this better (like adding tagging via the API), and there is a detailed todo list in the repo, but I feel this is a good start.
If you have any questions or would like help implementing something like this for your business email me 👋