If you want to track events in Vimeo videos embedded on your site, you need to copy the tracking code from Vimeo, add it to Piwik PRO and set up the events. Just keep in mind that you can only use a Vimeo tracking code if you’re a Vimeo Business or Vimeo Premium member.
To set up Vimeo video tracking, follow these steps:
- Log in to Vimeo.
- Navigate to Settings > Marketing.
- In Google Analytics, you’ll see a tracking code.
- Copy the code. You’ll use it in Piwik PRO in a few steps.
- Log in to Piwik PRO.
- Go to Menu > Tag Manager.
- Create a Custom asynchronous tag. This tag will track events in Vimeo players embedded on your site.
- In Tag code, paste the code copied from Vimeo.
- Add an existing trigger: All page views or add a new trigger.
- Click Save.
- Navigate to Variables.
- Create three variables with Data layer type:
- event_category
- event_action
- event_label
- Navigate to Tags.
- Create the following tag: Custom event.
- You can name it
Vimeo tracking event
. This tag will send events to Analytics. - Set up the following elements:
- Category: {{ event_category }}
- Action: {{ event_action }}
- Name: {{ event_label }}
Tip: These are the variables that you’ve set in step 12.
- Click Add a trigger.
- Name the trigger and select the following type: Data layer event.
- In Data layer event settings, set
Event name equals vimeo
. - Click Save.
- Click Save to save the tag.
- You can see if tags are working correctly in debug mode.
- When you’re happy with your settings, click Publish.
- Job done! After a while, collected data will appear in Menu > Analytics > Reports > Custom events.