Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Piwik Custom Dimensions does not work in combination Javascript-PHP on Moodle 3 #11518

Closed
sthopd opened this issue Mar 23, 2017 · 2 comments
Closed
Labels
worksforme The issue cannot be reproduced and things work as intended.

Comments

@sthopd
Copy link

sthopd commented Mar 23, 2017

Custom Dimensions does not work in combination Javascript-PHP on Moodle v.3, because Piwik's tutorial and FAQ's are very confusing and do not show the same code.
Which code line is correct? :
a) _paq.push(['setCustomDimension', 'customDimensionId = 1', 'customDimensionValue = ".$userData."']);

b) _paq.push(['setCustomDimension', 'customDimensionId:1', 'customDimensionValue:".$userData."']);

c) _paq.push(['setCustomDimension', 1, '".$userData."']);

NB: ".$userData." is filled in correctly by Moodle v3 plugin. But the Custom Dimension is not accepted by Piwik, so which one is correct: a, b, or c or ...?

What should be the exact line of code to paste into an analytics / statistics block of a web page for processing by Piwik?

Thanking you in advance for your answer,
sthopd@hotmail.com

Piwik 3.0.1
URLs:
Moodle: http://www.cper.org?br=gh
Piwik: http://www.sthop.org?br=gh

@sthopd sthopd changed the title Piwik Custom Dimensions does not work in combination Javascript-PHP on Moodle3 Piwik Custom Dimensions does not work in combination Javascript-PHP on Moodle 3 Mar 23, 2017
@tsteur
Copy link
Member

tsteur commented Mar 23, 2017

c) is correct.

because Piwik's tutorial and FAQ's are very confusing and do not show the same code.

can you send us links where we show different code?

@mattab
Copy link
Member

mattab commented May 8, 2017

Please re-open if you still experience the issue, and see our comment above.

@mattab mattab closed this as completed May 8, 2017
@mattab mattab added the worksforme The issue cannot be reproduced and things work as intended. label May 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants