A Better Form for UBT
Matomo Tag Manager

π Agenda
- Current Situation
- Matomo Tag Manager (MTM)
- MTM Concepts
- Demo
- Conculsion
π Current Situation
- Lengthy process for UBT modifications
- Ask frontend
- Modify Tag in codebase
- Commit
- Push
- PR
- Different codes for Piwik & Pendo
- UBT Tags separated in different files
π€ What if?
- Modify UBT without changing frontend codebase
Β
- One effort for both Piwik & Pendo
Β
- Manage all UBTs Tags from a place
Matomo Tag Manager (MTM)
- Matomo's (formerly Piwik) Tag Management System (TMS)
- Control UBTs from Matomo's console
- Since v3.7.0


MTM Concepts - Components
- π· Tag
- A snippet of code which can be executed on your site
- e.g. send UBT object, Custom HTMLs
- π₯ Trigger
- Conditions that let you define on which event a tag should be fired.
- e.g. Clicked, Scroll
- π€ Variables
- Dynamic value which will be resolved at the time the value is being accessed
- e.g. Current URL, Current Scroll Position, Current CSS Class...etc
MTM Concepts - Components
-
πΎ Data Layer
- Indent for accessing data which are not on UI
- e.g. vid, languageβ
- π¦ Container
- Stores all these components
Components - To illustrateΒ

{
category: 'Favorite Button',
action: Clicked_{{Favorite Count}},
name: '',
value: ''
}π₯ Trigger

π· Tag
π€ Variables /
πΎ Data Layer

π¦ Container
MTM Concepts - Publish
- π Preview / Debug
- β¬οΈ Publish
- π Version Control
MTM Concepts - Add UBT Process
Pre-request: Insert π¦ Container Code
π·
Add a Tag
π₯
Link to a Trigger
π
Preview / Debug
β¬οΈΒ
Publish
π Β Version added
Demo - A Blog Website
ππ½ Pros
- AgilityΒ
- Better Management for Tags
- Version control
ππ½ Cons
- Still need to change codebase when
- use custom variables
- send different event with one trigger
Conclusion
Thanks for listening!
Matomo Tag Manager
By Chang Henry
Matomo Tag Manager
- 46