• We've added extra Spam Protection. if you get problem with account registration / registration rejected. please contact us
Frank

[cXF] Matomo Analytics 1.1.0

Compatible XF 2.x versions
  1. 2.0
  2. 2.1
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:
JavaScript:
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
Frank
Downloads
5
Views
208
First release
Last update
Rating
4.00 star(s) 1 ratings

More resources from Frank

Latest updates

  1. [cXF] Matomo Analytics 1.1.0

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

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock