• Hi All

    I have several websites (not all wordpress) in my piwik installation.

    Is there an option (or planned option) to have the piwik “site-id” (idSite) in the shortcode attributes?

    Like:
    [wp-piwik idSite=”1″ module=”overview”]
    [wp-piwik idSite=”3″ module=”overview”]

    If not I would like to propose this feature.

    Thank you,
    Roman

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

    (@braekling)

    Just to understand your request: You want to use a shortcode to show statistics of a site different from your current WordPress site… or even of a non-WordPress site. Did I get it?

    The implementation should be quite easy, but there are some security concerns: If I would just add this parameter, in a network every author would be able to access (and publish) other sites’ statistics.

    Maybe I can add this combined with an expert settings switch to disable/ enable the functionality. But, please, give me some time to think about this.

    Thread Starter vanedler

    (@vanedler)

    Hi again,

    exactly this is what I want to do. The reason is, as we plan to build a SEO company, I plan to have customer pages where they could see their statistics.

    I understand the issue with the security. For my application it would be enough to access only my own piwik server where all my customers sites are tracked.

    Thank you,
    Roman

    Thread Starter vanedler

    (@vanedler)

    Hi again,

    I got now your point. You mean security for my site. For us, we only have one author (myself). Would be ok. But of course there are sites with many authors ??

    Best regards,
    Roman

    Plugin Author braekling

    (@braekling)

    Exactly. ?? If I implement this feature, it will be rolled-out to all users. So I have to make sure the solution is bulletproofed.

    If it’s urgent, you can modify WP-Piwik/classes/WP_Piwik/Widget/Overview.php, line 12 as a workaround:

    'idSite' => isset($params['idSite'])?$params['idSite']:self::$wpPiwik->getPiwikSiteId($this->blogId),

    Important: This workaround is not tested, so you should try it on a test system first. Before updating WP-Piwik next time, first have a look at this thread if and how I implemented this feature.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to view Piwik Stats for different Sites’ is closed to new replies.