The readme doesn't mention where to find the authentication string. There's no such setting in the piwik users management. Any hints on what to enter there?

CommentFileSizeAuthor
#2 piwik.PNG32.33 KBmemger

Comments

hass’s picture

You can find this authentication string inside the piwik administration UI... (not the Drupal module). I hope this haven't changed in the latest piwik version, but it was there in past.

memger’s picture

StatusFileSize
new32.33 KB

I've attached a screen shot my piwik interface. I guess that's the location you a re referring to?
Any hints on where to find that string?
I can however add additional users and i can see their respective authentication strings, but which should I choose and how does the plugin know which user it should use to authenticate against piwik?

hass’s picture

Status: Active » Fixed

I have installed the latest version today and checked out. You are one the right page. Create a user on the bottom and use the token_auth value in the drupal module.

hass’s picture

Ups - No it think it's a different value... click in your piwik the "API" link... than you see the auth key... not sure if the other will work... I need to test myself

memger’s picture

It still doesn't seem to work (couldn't locate the piwik jscript in the page source), although I've now found the token string thanks to your help. Is there a way to check functionality or diagnose the plugin? Logging or something?
thx

memger’s picture

Status: Fixed » Active
memger’s picture

Status: Active » Postponed (maintainer needs more info)
hass’s picture

Status: Postponed (maintainer needs more info) » Fixed

Look inside a node, it is there, but not in the filtered pages like "admin"

memger’s picture

I found the error: piwik just didn't work with my custom theme. As soon as I switched back to one of the default themes, everything worked.
Do you have any good guess what might cause this?

memger’s picture

My best guess so far is, that the fact that piwik js doesn't show up when my custom theme is enabled, has something to do with drupal_add_js not working correctly. Do I need to modify my theme anyway to deal with this? thx!

memger’s picture

I've finally tracked down the error. It was indeed my custom theme. Appending a print $closure to the end of the page.tpl.php file solved it.

cheers!

hass’s picture

Well, buggy theme... this is the fix

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

MtRoxx’s picture

In case someone else finds this post, I was having the same issue... I was having some challenges setting up the General Settings.

1. I installed Piwik on my server. After logging into their software, click on Websites, a tab at the top of the page. If your site is added, great, get the ID number (the row number) there. If the site you want to monitor is not there add it, then get the row number.

2. Copy the Piwik HTTP URL and paste that inot the Piwik HTTP URL field.

3. I did not use the HTTPS, but I am sure you can figure that out.

4. Piwik authentication token
- This is the one that confused me. Basically you have to add a new user to the Piwik software. Then you will see the Auth Code. Under the User tab, add a new user. Copy the Auth code.

I hope this saves someone else some time.
MtRoxx

grosbedo’s picture

I was also stuck with this $token_auth thing (they really should highlight the procedure better), but I've finally found how to do it.

You indeed can create a new user, but this is not necessary. An API key (the infamous $token_auth) is automatically created for the Super User and can be found directly by going into your Piwik interface, on the homepage go to the API link (at the top of the page), and then you will find there your API key (super user $token_auth).

This information was found in the Piwik FAQ under General Concepts:
http://piwik.org/faq/general/#faq_114

Also for a concrete example of how to use the Piwik tracking API with PHP, see this informative page:
http://piwik.org/docs/tracking-api/#toc-how-to-use-the-php-tracker-api-e...

And two plugins that might be interesting:
https://github.com/VisualAppeal/Piwik-PHP-API
http://dev.piwik.org/trac/ticket/2768

(Disclaimer: I am not affiliated at all to any of these links)