- Summary
- This download allows users to integrate Matomo (formerly Piwik) tracking code into their website templates, either by manually editing the template or using a simple template modification tool. It enables setting up analytics settings in Matomo's control panel and customizing visitor tracking by username through specific code modifications.
Integrate Matomo (formerly Piwik) tracking code into their website templates, either by manually editing the template or using a simple template modification tool. It enables setting up analytics settings in Matomo's control panel and customizing visitor tracking by username through specific code modifications
Matomo (formerly Piwik) tracking code in a template. You can do it all by yourself by directly editing the template or install this simple template modification.
Set all your Matomo analytics settings in Matomo control panel and simply paste the tracking code in template cxf_matomo_analytics. Find your tracking code in Matomo Settings > Websites > Tracking Code.
How to track visitors by username?
In your tracking code find:
Code:
var _paq = _paq || [];
... and paste next code right below that line:
Code:
<xf:if is="{$xf.visitor.user_id}">
_paq.push(['setUserId', '{$xf.visitor.username}']);
</xf:if>
Matomo (formerly Piwik) tracking code in a template. You can do it all by yourself by directly editing the template or install this simple template modification.
Set all your Matomo analytics settings in Matomo control panel and simply paste the tracking code in template cxf_matomo_analytics. Find your tracking code in Matomo Settings > Websites > Tracking Code.
How to track visitors by username?
In your tracking code find:
Code:
var _paq = _paq || [];
... and paste next code right below that line:
Code:
<xf:if is="{$xf.visitor.user_id}">
_paq.push(['setUserId', '{$xf.visitor.username}']);
</xf:if>