• I tried to switch from default tracking method to API tracking method (self-hosted), entered & verified that the path is correct but failed – piwik only showed an error that it could not connect and that configuration should be checked. I also do not see any additional infos in php error log if debugging is turned on. Had to switch back to default tracking method.
    Is there an option to display more details on why the api tracking fails to be activated?
    thx,
    Robert

    https://ww.wp.xz.cn/plugins/wp-piwik/

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

    (@braekling)

    To avoid any missunderstandings: WP-Piwik does not offer PHP API tracking. You can only change the connection method (HTTP requests or including Piwiks PHP classes).

    If the connection by inlcuding the PHP classes does not work, please…

    1. … check if you entered the correct server path to Piwik (you should choose the full path, not a relative one).
    2. … check if PHP safe mode is enabled and the Piwik directory is configured as safe_mode_include_dir of your wordpress.domain environment. Also using open_base_dir can avoid opening files from directories outside your current environment.

      See http://php.net/manual/en/ini.sect.safe-mode.php and http://php.net/manual/en/ini.core.php#ini.open-basedir

    3. … enable logging to get some additional information: Open wp-piwik/config.php and set WP_PIWIK_ACTIVATE_LOGGER to 2. Make sure the folder wp-piwik/log is writable.
    Thread Starter Robert Seyfriedsberger

    (@harmr)

    thanks for the detailled info! I checked the server path and yes, there was an error in it – corrected it and now it works! 🙂

    What I wonder: which overall advantages does the PHP API connection method offer in contrast to regular https requests? couldnt find any docs on piwik.org – I guess it should be more performant, as it saves http requests or am I wrong here?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘not able to use API tracking method’ is closed to new replies.