Working with Piwik web stats...

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
Lawrence
-


Joined: 16 Jan 2003
Posts: 207
Location: Brisbane, AU

PostPosted: Tue Jul 28, 2009 8:36 am    Post subject: Working with Piwik web stats... Reply with quote

Someone recommended [url=http://piwik.org]Piwik[/u] to me as a stat-counter, and it seems to be brilliant software, with animated graphs and sophisticated tracking. Basically, open source google analytics.

But!

It doesn't work with Abyss. At least, I can't make it work. Using their default code I get an instant error 500, but it changes depending on where I put the code. In my forum there's a separate header and footer, and if I put the Piwik code in the header I get a blank page. If it's in the footer I get all the content BUT the footer, which is completely missing.

The weird thing is, it's all Javascript. Why does this induce server errors? And why does that error stop happening when I remove the try...catch component of the js.

Code:
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://{$PIWIK_URL}" : "http://{$PIWIK_URL}");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", {$IDSITE});
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script>
<!-- End Piwik Tag -->


If I remove these two lines:

Code:
try {

} catch( err ) {}


Then it stops giving these errors, the entire page draws, but the software stops working. No more updates are made to the Piwik databse or the Piwik stats pages.

It does have a fallback mode, where it uses invisible images, but this doesn't seem to offer the full functionality (it's not recording referrers, for example) so I'd prefer to make it work properly.

Any ideas?
Back to top View user's profile Send private message Visit poster's website ICQ Number
Lawrence
-


Joined: 16 Jan 2003
Posts: 207
Location: Brisbane, AU

PostPosted: Tue Dec 28, 2010 1:18 am    Post subject: Reply with quote

I suppose it was a spammer or other deleted message, but I did receive an update notification for this thread.

I thought I'd just say that it all seems to be working now. I have no idea what changed, or whether it was a config issue or piwik update, but it's been running fine now for ages. =)
Back to top View user's profile Send private message Visit poster's website ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group