You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: