1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Anyone using Piwik?

Discussion in 'Off Topic' started by HWS, Feb 28, 2013.

  1. HWS

    HWS Well-Known Member

    Has anyone of you experiences with Piwik?

    This is a free access and visitor analyse software. We would like to replace Google Analytics.
  2. Teapot

    Teapot Well-Known Member

    I use it :D What would you like to know about it?
  3. Deebs

    Deebs Well-Known Member

    Likewise, been running for a few years now.
  4. HWS

    HWS Well-Known Member

    Do you have had any troubles? How does it scale? We have a large web site with several million page views per day. Are you satisfied with the reports? Do you run it at a dedicated server or the same server your web site is on? Are there any serious bugs, is the software supported and updated regularly?

    Did someone of you switch from Google to Piwik and was satisfied with the change?
  5. Jeffin

    Jeffin Well-Known Member

    I had it a long time back but I still prefer Google Analytics. Last year, their site got hacked and some malicious code was inserted into the installation files. Some sites were affected. I don't see anything good about Piwik other than the fact that it's open source. For me, I never needed an open source alternative to Google analytics so I removed it at a later time.
  6. melbo

    melbo Well-Known Member

    @Teapot @Deebs
    Has anyone set this up to grab the XF username with a custom variable?
    Would be nice to track visits by member as well as by IP :)

    Would also like to track resource downloads.
    Last edited: Jan 13, 2015
  7. Liam W

    Liam W Well-Known Member

    I don't use a custom variable, I use the builtin Piwik userid setting :)

    Example entry:

    Screen Shot 2015-01-14 at 00.37.09.png

    All you have to do is add

    <xen:if is="{$visitor.user_id}">
          _paq.push(['setUserId', '{$visitor.username}']);
    underneath the first line of the piwik code:

    <!-- Piwik -->
    <script type="text/javascript">
      var _paq = _paq || [];
      <xen:if is="{$visitor.user_id}">
          _paq.push(['setUserId', '{$visitor.username}']);
      (function() {
        var u="//<piwik domain>/";
        _paq.push(['setTrackerUrl', u+'piwik.php']);
        _paq.push(['setSiteId', <site id>]);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
    <noscript><p><img src="//<piwik domain>/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
    <!-- End Piwik Code -->
    rafass, Robru, eva2000 and 1 other person like this.
  8. melbo

    melbo Well-Known Member

    Very nice. Thanks @Liam W !

    Do you have some quick magic code for getting RM downloads to track under Downloads?
  9. drsprite

    drsprite New Member

    @Liam W I hate to dig up an old post, but since it's not closed I figure why not :)

    I have Piwik and I want to be able to track userid, but have no idea where to insert the custom code. Any tips on where I'd paste the whole codeblock in? Thanks!

    EDIT: Ah, in ACP > Appearance > Templates > PAGE_CONTAINER.

    I'm very used to WordPress, so I was looking for a flat file. :)
    Last edited: Sep 23, 2016
  10. Liam W

    Liam W Well-Known Member

    You shouldn't use the page container template. You should use the page_container_js_head template, which is included by the PAGE_CONTAINER template.

  11. drsprite

    drsprite New Member

    Even better, thank you for the update

Share This Page