Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Piwik stats
#1
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/piw...lugin/452/

PD: Sorry for my english.
Reply
#2
Hello,
On version 3.1.2 :
Code:
Notice: Undefined index: piwik_plugin in /mnt/..../plugins/piwik_plugin.php on line 41
Reply
#3
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
Reply
#4
ooh I didn't know about piwik at all, thanks for the plugin.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#5
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
Reply
#6
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?
Reply




Users browsing this thread: 1 Guest(s)