This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Pages: 1 - Last Post: 07-Jun-2017 14:08 Last Post By: jGromit Threads: [ Previous | Next ]
datorexpert

Posts: 39
Registered: 18-May-2008
Add Piwik Code
Posted: 07-Jun-2017 09:31
 
  Click to reply to this thread Reply
Hi!

Using jAlbum 13.10 and Matrix (latest version).
How do I add code for Piwik, http://piwik.org, to an Album using Matrix?

Best regards,
/Thomas
jGromit

Posts: 33,206
Registered: 31-Jan-2006
Re: Add Piwik Code
Posted: 07-Jun-2017 14:08   in response to: datorexpert in response to: datorexpert
 
  Click to reply to this thread Reply
I have never used Piwik, but a quick look at their site indicates that the tracking code needs to be placed just after the opening <body> tag, so stash it under Matrix > Code > HTML Body Opening.

Out of the box, it's not going to be able to track individual image views, however. When you view an image on a Matrix album page, the URL doesn't change, and this kind of tracking code can see only the URL of the current page. They do provide a way of tracking "events" on the page, but to use that, you'd have to hack the Matrix code to add the Piwik tracking event to each of the image onclick functions.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums