Matomo Integration Guide ​
This guide covers how to send Videobot events to Matomo using Matomo Tag Manager (MTM). Videobot pushes events directly to the window._mtm data layer — no custom JavaScript required on your site.
Prerequisites ​
- Matomo Tag Manager is installed on your site with the
_mtmdata layer snippet loaded before Videobot - You have access to your Matomo Tag Manager container to create triggers, variables, and tags
Matomo Tag Manager vs. Matomo Tracker
This integration requires Matomo Tag Manager, not just the standard Matomo tracking snippet (_paq). If you only have _paq loaded on your site, you'll need to install Matomo Tag Manager first.
Step 1: Configure Videobot ​
- Open the Videobot you wish to track from the Videobots page
- Navigate to the Settings tab and then the Tracking & analytics section
- Set the integration type to: Matomo
- Save and Publish the changes
- Repeat for each Videobot instance in use
Step 2: Create Data Layer Variables in MTM ​
In your Matomo Tag Manager container, create Data Layer variables for the event fields you want to capture. Create a variable for each field:
| Variable name | Data layer key |
|---|---|
videobot_id | videobot_id |
videobot_language | videobot_language |
videobot_referrer | videobot_referrer |
videobot_video_id | videobot_video_id |
videobot_video_name | videobot_video_name |
videobot_video_time | videobot_video_time |
videobot_current_slide_id | videobot_current_slide_id |
videobot_current_slide_name | videobot_current_slide_name |
videobot_next_slide_id | videobot_next_slide_id |
videobot_next_slide_name | videobot_next_slide_name |
videobot_click_url | videobot_click_url |
videobot_click_text | videobot_click_text |
videobot_form_id | videobot_form_id |
videobot_form_name | videobot_form_name |
To create each variable:
- Go to Variables in your MTM container
- Click Create new variable
- Choose type Data Layer
- Set the variable name and matching data layer key from the table above
Step 3: Create a Trigger ​
Create a trigger that fires on all Videobot events:
- Go to Triggers and click Create new trigger
- Choose trigger type: Custom Event
- Set the Event name to:
^videobot_.*and enable Use regular expression - Name the trigger:
Videobot Events - Save the trigger
Step 4: Create a Tag ​
Create a tag to send Videobot events to Matomo as tracking events:
- Go to Tags and click Create new tag
- Choose tag type: Matomo Analytics (or Custom HTML if you prefer full control)
- Configure the tag:
- Track type: Event
- Category:
Videobot(or a value of your choice) - Action: Use the built-in
variable for the event name - Name / Label: Optionally map
or other variables
- Set the Trigger to:
Videobot Events - Save and publish the container
Custom HTML tag
If you need more control, you can use a Custom HTML tag instead. The tag fires whenever a Videobot event is pushed, and you can access all mapped variables via etc.
Step 5: Verify ​
- Open your site in a browser and interact with a Videobot (open it, play a video, etc.)
- Open the browser console and run:jsYou should see an array containing objects with
window._mtmeventkeys likevideobot_open,videobot_play, etc. - In your Matomo Tag Manager container, use the Preview / Debug mode to confirm the trigger fires and the tag executes
- Check Matomo reports → Events to confirm events are being recorded (allow a few minutes for data to appear)
Further Reading ​
- Supported Events — full list of Videobot event names and fields
- Configuring Integrations — overview of all integration options