Ok. In the spirit of trying my best, and getting as far as I can on my own, this is my best guess about what I should do. Would someone please tell me if I’m getting close? Here’s what I’m thinking:
-
“piwik code” does mean the js (that goes on every page to be tracked)
-
The part I need to change is:
_paq.push(["trackPageView"]);
- I need to change it to:
_paq.push(["setCustomVariable", "1", "Member", "Name", "visit"]);
_paq.push(["trackPageView"]);
Or possibly “Name” should be “Username”? Or even “member name”?
I pieced that together using examples and what little info I could understand on these 3 pages (while still not understanding php or js).
http://piwik.org/docs/custom-variables/
http://developer.piwik.org/api-reference/tracking-javascript#custom-variables
http://piwik.org/blog/2012/10/custom-variable-case-study-divezone-net/
It’s probably because I don’t know much at all about PHP or JS, that I don’t understand this. But my main question, which is not answered in any of those docs, is how does Piwik know what I mean by “member” and “name”?
They explain setCustomVariable, and the number, and they explain “visit” on the end. But it seems to me that somewhere I should have to tell piwik what I mean by “member” and “name”.
That’s why I was asking in my previous message about a list of all the possible variables, so I can choose the proper words to put in the code. Either there must be existing custom variables that I can use; or somewhere I need to tell Piwik what I mean. How does it magically know that? (Or know what any of the words I saw in the examples in those 3 docs, means? For example, “gender”.)
(A close runner up in big questions, is how piwik has any idea about the gender of the user of the computer. But that really is irrelevant to the task at hand 8-).)
Thanks for any guidance anyone can offer