GetSimple Support Forum
Piwik stats - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: Piwik stats (/showthread.php?tid=3151)



Piwik stats - zeu - 2012-05-03

Hello

I've developed a tiny plugin to put piwik stats code in our GS pages.

It's a very simple plugin with an option in "Settings" with 3 fields:

Web ID -> ID website from piwik
Token -> Token code generated by piwik to show visits graphic.
Stats URL -> Domain and directory where is piwik installation.

Any help, bug or comment would be much appreciated Smile

Download: http://get-simple.info/extend/plugin/piwik-stats-plugin/452/

PD: Sorry for my english.


Piwik stats - madvic - 2012-07-06

Hello,
On version 3.1.2 :
Code:
Notice: Undefined index: piwik_plugin in /mnt/..../plugins/piwik_plugin.php on line 41



Piwik stats - madvic - 2012-07-06

Text error :

ID code of piwik must be the number assigned in piwik installation.
If ID is "0", piwik code will not added to page (deactive ??desactive ??).
Token URL format without "http://" like: [subdomain.]domain.com
*[subdomain.] is optional


Piwik stats - shawn_a - 2012-07-09

ooh I didn't know about piwik at all, thanks for the plugin.


RE: Piwik stats - yoschi - 2012-11-29

in the non-Javascript-part, and in the part showing the graph there is a hardcoded domain "stats.simplicer.com" instead of the one specified in the plugin-options.

here is a fix:

Replace
Code:
<img src="http://stats.simplicer.com/piwik.php?idsite=<?php echo( $code ); ?>" style="border:0" alt="" />
by
Code:
<img src="http://<?php echo( $stats_url ); ?>/piwik.php?idsite=<?php echo( $code ); ?>" style="border:0" alt="" />
and replace
Code:
<img src="http://stats.simplicer.com/index.php?module=API&method=ImageGraph.get&idSite=<?php echo( (int) $piwik->code ); ?>&apiModule=VisitsSummary&apiAction=get&token_auth=<?php echo( (string) $piwik->token ); ?>&graphType=evolution&period=day&date=previous30&width=500&height=250" />
by
Code:
<img src="http://<?php echo( (string) $piwik->stats_url ); ?>/index.php?module=API&method=ImageGraph.get&idSite=<?php echo( (int) $piwik->code ); ?>&apiModule=VisitsSummary&apiAction=get&token_auth=<?php echo( (string) $piwik->token ); ?>&graphType=evolution&period=day&date=previous30&width=500&height=250" />

greets
y


RE: Piwik stats - jwestenberg - 2013-09-26

I am a complete noob and I am trying to use the piwik plugin. I have unpacked the .zip file and put the .php file that was inside in the plugins folder.

In settings I can now choose piwik and I have to put in three values:

web id: was 0 I set it to 1

token code: is allready filled in with sc.......8 I left it this way

stats url: = 77.172.48.80 this is the ip addres you can use to see my website.

When I press update I see it is trying to show me a picture but it says the link is broken or something. The picture doesn load. When I go to the image url it redirects me to zeura.com.

What am I doing wrong?
Doesn't this plugin work anymore?