Posts: 1
Threads: 1
Joined: May 2012
2012-05-03, 00:21:39
(This post was last modified: 2012-05-03, 00:28:43 by JestineCa.)
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
Download:
http://get-simple.info/extend/plugin/piw...lugin/452/
PD: Sorry for my english.
Posts: 105
Threads: 10
Joined: Dec 2009
Hello,
On version 3.1.2 :
Code:
Notice: Undefined index: piwik_plugin in /mnt/..../plugins/piwik_plugin.php on line 41
Posts: 105
Threads: 10
Joined: Dec 2009
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
Posts: 6,266
Threads: 181
Joined: Sep 2011
ooh I didn't know about piwik at all, thanks for the plugin.
Posts: 2
Threads: 0
Joined: Nov 2012
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
Posts: 1
Threads: 0
Joined: Sep 2013
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?