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

    (@braekling)

    Since 0.9.7 WP-Piwik supports shortcodes. E.g. you can use

    [wp-piwik module="overview" title="" period="day" date="yesterday"]

    to show the overview data. You should also be able to call WP-Piwik’s function shortcode($aryAttributes) to show the overview in your footer or sidebar.

    Example (I didn’t try yet):
    $GLOBALS['wp_piwik']->shortcode(array('module'=>'overview'));

    More shortcodes (if applicable also widgets) will follow by and by.

    Thread Starter andrewtansw

    (@andrewtansw)

    I’ve not been successful in using the [wp-piwik module=”overview” title=”” period=”day” date=”yesterday”] shortcode.

    I inserted the above shortcode into a text box and put it in one of the footer widget. It displayed the shortcode as a text in the footer when I view it from the Home page.

    Maybe I’m doing something wrong?

    Andrew

    Plugin Author braekling

    (@braekling)

    The shortcode itself works on pages and sites only. (And WP-Piwik shortcodes have to be activated.)

    To add contents to your sitebar or your footer, you can try to call the PHP function within the related files.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Could we add a Visitor Counter in the next upgrade?’ is closed to new replies.