• I had a working wp-piwik plugin. Its configuration looked like this:
    pic1
    It worked fine. Then I moved the piwik installation to a different location (so I can track more sites).
    pic2
    Now wp-piwik only recognizes the auth key if we’re not using a /home… path, but http://analytics… path. And unfortunately it doesn’t work – no tracking occurs.

    If I give a wrong URL, it sees it’s wrong. If I supply a wrong auth token, it sees it’s wrong. So somehow the plugin communicates with piwik. If I supply piwik location as a /home/piwik/, it doesn’t work, and I’m pretty sure it used to work before I updated from 2.3.0 to 2.7.0.

    Piwik works fine with the javascript tracking code. But that is visible in the browser and I don’t like that. I don’t want the tracking to depend on the user’s browser. I don’t want the client to know that there’s tracking.

    The option “Piwik path (PHP API, beta):” works only if I remove the auth token but also doesn’t track. the piwik path can only be /home/piwik….

    If there’s manual php code inclusion that I can use, I’d use it. But i’m not very good with php to write it on my own.

    Any suggestions?

    https://wordpress.org/plugins/wp-piwik/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter jonathan_973

    (@jonathan_973)

    Question also asked on stackoverflow: link

    Plugin Author braekling

    (@braekling)

    After moving your Piwik’s location, did you also update the trusted hostname?

    See http://piwik.org/faq/troubleshooting/faq_171/

    Thread Starter jonathan_973

    (@jonathan_973)

    I’m not getting any warnings, in the config page, I have Piwik is installed at: –>Valid Piwik Hostname: my.correct.url. So I don’t think this is the problem.

    Test script returns this:

    *** Test 1/2: SitesManager.getSitesWithAtLeastViewAccess ***
    Using: cURL
    SSL peer verification: enabled
    User Agent:
    Call: /home/user/piwik_location/?module=API&method=SitesManager.getSitesWithAtLeastViewAccess&format=XML&token_auth= + TOKEN
    Result:
    
    Time: 0s
    
    *** Test 2/2: SitesManager.getSitesIdFromSiteUrl ***
    Using: cURL
    SSL peer verification: enabled
    User Agent:
    Call: /home/user/piwik_location/?module=API&method=SitesManager.getSitesIdFromSiteUrl&url=http%3A%2F%2Fsite.com&format=XML&token_auth= + TOKEN
    Result:
    
    Time: 0s

    Plugin Author braekling

    (@braekling)

    Looks like you entered the Piwik path in the Piwik URL box (REST API). The Piwik URL is the URL you use to open your Piwik dashboard.

    Thread Starter jonathan_973

    (@jonathan_973)

    My mistake, I showed you the wrong configuration

    If I put the correct url in “Piwik URL (REST API):” it will not track.
    If I put the correct dir in “Piwik path (PHP API, beta):” it will not track.

    It will track only if I insert the “piwik tracking code” in the third tab. And I don’t want tracking code on the web page (I don’t want the user to see the tracking code, because a bot may choose not to execute it).

    I want the tracking to be done somehow by a php code on my site calling php function on the piwik site. Is this possible?

    Plugin Author braekling

    (@braekling)

    WP-Piwik itself just adds the stats page to your WordPress admin dashboard. Additionally, it allows you to add your Piwik tracking code to your site which is required to track your visitors.

    So the behavior is as expected.

    Piwik offers some kind of a PHP tracking API but it’s not supported by WP-Piwik, yet. (And currently I can’t tell you if and when it will be added.)

    Thread Starter jonathan_973

    (@jonathan_973)

    So the configuration on the first page is only for the widget to show graphs and not for tracking?

    I get it now. But this is a problem. Will you implement piwik’s api, so that the tracking happens without the client seeing it?

    Plugin Author braekling

    (@braekling)

    That’s right.

    WP-Piwik was intended to show the Piwik stats inside your WordPress admin dashboard and was extended to add the JavaScript tracking link:

    This plugin adds a Piwik stats site to your WordPress dashboard. It’s also able to add the Piwik tracking code to your blog

    Currently, there are no plans to implement the PHP Tracking API, because it lacks of different features which are provided by the Javascript tracking code. This does not mean “never”, but I can’t tell you if and when.

    Thread Starter jonathan_973

    (@jonathan_973)

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘wp-piwik recognizes the key, but doesn't track with "piwik url" or "piwik path&q’ is closed to new replies.