Track ViewMedica events with Google Analytics
You can track events associated with individual ViewMedica content items using your Google Analytics account.
Enable tracking
Make sure you have a Google Analytics account and have the analytics tracking code installed in your HTML page that displays the ViewMedica viewer. See Google’s site for Google Analytics support.
Paste the following script in the head of your website. It is required, as it relays events from the ViewMedica iframe to the Google Analytics on your page.
1
<script src="https://ondemand.viewmedica.com/lib/vm.js"></script>
Finding the ViewMedica On-Demand events in your Google Analytics
Log into your Google Analytics account.
Click the “Behavior” section.
Click the “Events” subsection.
Click the “Overview” page.
Click the “ViewMedica On-Demand” category.
Select “Event Label” as the Primary Dimension.
Here you can see the various ViewMedica videos that your users have interacted with. By clicking the ViewMedica video title, you can see the following events that occured:
- Video Loaded
- Video Started
- Step Reached | { Step }
- Percent Reached | { Percent }
- Video End