[cXF] Matomo Analytics

xF2 Add-on [cXF] Matomo Analytics 1.1.0

No permission to download
Compatible XF Versions
  1. 2.0
  2. 2.1
  3. 2.2
With this simple template modification you can easily add your 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>
Author
Admin
Size
15.9 KB
Extension
zip
Downloads
8
Views
1,157
First release
Last update

More resources from Admin

Latest updates

  1. 1.1.0

    XenForo 2.2 compatibility update Note: you'll find two ZIP files when downloading. One for XF...

Similar resources

[cXF] About Tab as Default Admin
Show About tab on member view as default.
[cXF] Admin Search on Index Admin
for faster search on administration index page.
[cXF] Advertising position after first post Admin
Show ads after first post if there are any replies only.
[cXF] Back to top in post Admin
Add an arrow to Go to top in each post and optionally choose a position.
[cXF] Conversation Button Admin
Add conversation button or icon in message user block.
731Threads
2,287Messages
63,802Members
farihatahsinLatest member
Back