• Resolved cleanteam

    (@cleanteam)


    I gave WP-Piwik a 5 star rating. it works very nice on my multisite install (WP 3.2.1 with Multi-DB). But I’d like to add some thoughts here after I had a hard time to figure out some strange occurrences. Maybe this helps someone…

    I had installed WP-Piwik some while ago on my multisite and at that time worked just fine, adding new sites to Piwik. Some site upgrades and tweaking however left me suddenly with site stats that did not really belong to freshly created sites and the sites didn’t get added to Piwik. First I suspected the newly introduced Multi-DB, but since there are no WP-Piwik tables required, Multi-DB was not causing this. there were basically two things that got mixed up:

    1. It seems upgrading the plugin overwrites the multisite config setting though and it might be a good idea to have them in a separate config file, that does not get overwritten upon upgrade. Had to set it back to multisite=true.

    2. Also experienced a strange behavior in connection with wpmudev’s new blog templage plugin. Making a previous site (with activated piwik stats) into a template for new blogs will replicate the template site’s stats on the newly created site and the new site won’t get added to Piwik. It took me some time to figure it out, but in order to prevent this behavior, one needs to clear out the db field wp-piwik-settings from the wp_(siteid)_options table of the template site. Once this field is empty, the newly created site will generate its own footer script with its own ID and the site gets added to Piwik.

    Just thought I leave a note about this here, as I could not find it documented anywhere. Maybe this will help someone else.

    Thanks for the great plugin Braekling!

    http://wordpress.org/extend/plugins/wp-piwik/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cleanteam

    (@cleanteam)

    further to my last post, no. 2 WP-Piwik and WPMUDEV new blog template:

    Note: deleting the wp-piwik-settings unfortunately is not a permanent remedy for the problem, as the field gets repopulated and propagated during site creation, hence the newly created blog will again show the stats of the template site and the new site is not added to Piwik.
    The described ‘fix’ worked for only one fresh blog. I don’t know how I could exclude the field from being repopulated or copied over during the creation process. Maybe someone having some idea?

    Plugin Author braekling

    (@braekling)

    Hi there, thank you very much!

    Regarding your two issues:

    1. Good idea. I’ll add this soon.

    2. Did you try the current development version? Maybe this issue is caused by the same problem as http://wordpress.org/support/topic/plugin-wp-piwik-0810-upgrade-duplicates-all-sites

    You can get the dev version here: http://downloads.wordpress.org/plugin/wp-piwik.zip (Please create a backup before testing this!)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-Piwik] very cool indeed!’ is closed to new replies.