• Resolved Anonymous User 14556293

    (@anonymized-14556293)


    WP-Piwik says in the options, that it is connected successfully to Piwik (“WP-Piwik 1.0.3 wurde erfolgreich mit Piwik 2.14.3 verbunden. Du verwendest WordPress 4.2.4.”). But nothing is counted in Piwik or WP-Piwik.
    Indeed there are not much visitors on my sites, but I just tested by visiting myself (with another browser), and: no count.

    https://www.ads-software.com/plugins/wp-piwik/

Viewing 15 replies - 1 through 15 (of 27 total)
  • Plugin Author braekling

    (@braekling)

    • Did you enable WP-Piwik to add the tracking code? (Settings -> WP-Piwik -> Enable Tracking)
    • Please check your blog’s source code – is the tracking code added as expected? (WP-Piwik offers a tracking filter to avoid tracking of logged-in users like the admin… log out to make sure the filter does not apply).
    • If the tracking code is missing, please check your theme. Is it using wp_head() and wp_footer() (typically in header.php and footer.php)? These methods are necessary to add several contents to your blog pages, e.g., the Piwik tracking code.
    Thread Starter Anonymous User 14556293

    (@anonymized-14556293)

    Thanks for your reply! Honestly I have not much know how in IT and programming. It’s just a nice (sometimes frustrating) hobby I exercise in addition.

    * Yes, Tracking is enabled. I selected the option “Standard”.

    * Uh, where can I have a look into the source code? Is there an option in WordPress or do I have to open one of these files in the webspace. If so, which file? Indeed, the option, that WP-Piwik should not track me is enabled. That’s why I used another browser to check if this visit is tracked.

    * The theme I use is called “Suffusion”. Again: Unfortunately I do not know how to check, if it uses wp_head() and wp_footer(). As workaround I temporally changed the theme to the usual Twenty Fifteen and opened the site with another browser (to avoid the tracking-filter). Unfortunately no count as well ??

    Sorry for reasking. Until a couple of weeks (maybe months) Piwik counted everything well. I guess that an update “broke” something; I can’t remember if I changed an option that could stop the counting.

    Plugin Author braekling

    (@braekling)

    Just open the page in your browser (logged out), right-click somewhere and choose the option “show source code” or similar (bei Firefox hei?t es z.B. “Seitenquelltext” anzeigen).

    If you search for Piwik within the shown source code, you should find the tracking code which is also shown in WP-Piwik’s settings.

    One more idea: Are you using a caching plugin for WordPress? In this case you can try to clear the cache or at least to disable this plugin for testing.

    Thread Starter Anonymous User 14556293

    (@anonymized-14556293)

    Oh, that trick to view the source code was too easy, I should know it ??

    Good news: I found the Tracking-Code in the source code.

    No, I have no caching plugin installed.

    I have the same problem. Use the theme SmartMag. When I see the source code of the page piwik code appears. I haven’t caching plugin installed.

    Also having the similar problem. I have a re-sellers hosting account. On the main domain I installed the Piwik instance which I use as the admin portal.

    I then went to some of my separate wordpress sites and installed the piwik plugin, entered the URL and Auth Code with Auto-Config. Made sure tracking is enabled but the sites are not tracking visitors and Im testing on 2 computers with different browsers at 2 locations.

    2 of the sites are connected but are slow with showing analytics, and of course as mentioned the other websites are not loading at all with analytics. Very Odd.

    Also just noticed that one instance hooked up to the root domain in which Piwik is installed, where I haven’t linked wp-piwik at all.

    Plugin Author braekling

    (@braekling)

    If the tracking code appears, please check if…

    a) the correct URL is used to connect to Piwik (try to open the URL, e.g.:

    var u="https://www.example.com/stats/";
    _paq.push(['setTrackerUrl', u+'js/index.php']);

    –> https://www.example.com/stats/js/index.php

    Does the Piwik tracker code appear?

    b) the correct site ID is used:

    _paq.push(['setSiteId', 1]);

    Compare the ID with the ID shown in Piwik related to the website (login to Piwik -> Administration -> Websites).

    Also make sure Piwik is available using your websites protocol. E.g., if your website uses SSL (httpS), make sure Piwik is also available using SSL (and your certificate is valid).

    If everything looks like expected, please try to diagnose JavaScript errors:
    https://codex.www.ads-software.com/Using_Your_Browser_to_Diagnose_JavaScript_Errors

    Do you discover anything odd? Or does a JavaScript error appear? Then please post your result here, so I can have a look at this.

    Does the tracking code seem correct and no errors appear? Then ask the Piwik community for help, please: https://forum.piwik.org/

    Thank you for the response and support!

    I checked the site ID’s and some were incorrect, so I have made sure all are correct now, although there was 2 sites that were NOT incorrect that are still not tracking.. Ive cleared the cache of the WP-Piwik plugins and re-checked the credentials and everything seems to be inputted correctly.

    Also looked at the firefox debugger tool and nothing stood out as an error.

    I do have my sites running MainWP Child, the host site which also houses Piwik is the MainWP Dashboard. I don’t know if there could be an interference but also as I’ve stated, a couple sites are showing analytics. I know that they have an extension to view analytics in their own dashboard but I don’t feel thats necessary, although I do not know if it provides any extra quality assurance with how Piwik runs in partnership with MainWP.

    Lastly, I think I am confused with the js/index.php URL you were referring to check. The Piwik URL I am directing back to is just https://www.domain.com/piwik/

    and on the script it displays _paq.push(['setTrackerUrl', u+'piwik.php']);

    Not index.php

    What was the error? I don’t think I quite understand.

    Plugin Author braekling

    (@braekling)

    @senorsalazar: If the tracking code is shown, you don’t need to bother about your theme. Obviously, WP-Piwik is working as expected, the tracking code is added to your page. So we have to understand why the user is not tracked. Please try to access the URL build by your tracking code (the difference depends on the chosen mode), e.g., https://www.domain.com/piwik/piwik.php – does this work?

    @pablo.cardozo: You should make sure the Piwik tracker script is available to your visitors. The error shows that your server denies access to piwik.php – check if the URL is correct and have a look at your server settings (especially .htaccess).

    In general:

    The tracking code just loads and configures the real tracker script provided by Piwik itself (which is more complex than the “little” tracking code). So if the tracking code is added correctly (correct URL, correct site ID), you have to check why the tracker can not be loaded (e.g., denied by the server) or does not work as expected.

    The tracking code is added as expected and seems to work? Then ask the Piwik community for help, please: https://forum.piwik.org/ – I just can help you related to the WordPress plugin.

    Same problem here: WordPress 4.3, wp-piwik 1.0.3

    The tracking code is embedded (using the execOnReady-function) but isn’t called. (Tested with firebug: no piwik.php-request!)

    Piwik works fine, when I embed the code manually into a test page.

    Plugin Author braekling

    (@braekling)

    Can you please check the protocol part? If your blog is using SSL (= https) the Piwik code should also use SSL (and vice versa). The default tracking code should choose this automatically (var u="//www.example.com/piwik" without http or https).

    If not, please check WP-Piwik’s expert settings. The option “Force Piwik to use a specific protocol” should be disabled if you do not need to force a specific protocol.

    The plugin “Async JS and CSS” seems to be the problem with wp-piwik. I had to disable the part “Detect <script> tags in wp_footer”. Now it seems to work — still testing…

    Thread Starter Anonymous User 14556293

    (@anonymized-14556293)

    Thank you for your help, br?ckling. But can’t see anything odd ??

    I have to ask Piwik…

    Good luck to the other with that issue!

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘Connected to Piwik, but no countings’ is closed to new replies.