If you want to track events on Vimeo videos embedded on your site, you need to copy the tracking code from Vimeo, add it to Piwik PRO, and set up events. Note that you can use a Vimeo tracking code only 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 couple of steps.
- Log in to Piwik PRO.
- Go to Menu > Tag Manager.
- Create a Custom asynchronous tag. This tag will be tracking events on Vimeo players embedded on your site.
- In Tag code, paste the code copied from Vimeo.
- Add an existing trigger: All page views or add and define a new trigger.
- Click Save for the tag.
- Navigate to Variables.
- Create three variables with Data layer type:
- event_category
- event_action
- event_label
- Navigate to Tags.
- Create a Piwik PRO custom event tag.
- You can name it
Vimeo tracking event
. This tag will send events to Analytics. - Set:
- Category: {{event_category}}
- Action: {{event_action}}
- Name: {{event_label}}
Tip:
These are the variables that you set in step 12. - Click Add new trigger.
- Name the trigger and select the following type: Data layer event.
- In Data layer event settings, set
Event name equals vimeo
.
- Click OK.
- Click Save for the tag.
- You can check if tags are working correctly in debug mode.
- When you’re happy with your settings, click Publish.
Now Piwik PRO will be tracking events on Vimeo videos embedded on your website. You’ll be able to see tracked data in the custom event report and session log report.