Note
These steps are for tracking events with Google Universal Analytics. If you have switched over to a Google Analytics 4 property, please see our article Track ViewMedica On-Demand with Google Analytics 4.
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 into the
<head>
of your website. It is required, as it relays events from the ViewMedica iframe to the Google Analytics on your page.
<script src="https://ondemand.viewmedica.com/lib/vm.js" defer></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 occurred:Video Loaded
Video Started
Step Reached | { Step }
Percent Reached | { Percent }
Video End