@friendlyfire wrote:
For the life of me, I can't get this to track my custom dimension value (and yes, they and the goals are set up):
<button onclick="javascript:_paq.push(['trackEvent', 'Button', 'click', {dimension1: 'TEST'}]);">Click Me</button>
or this:
<button onclick="javascript:_paq.push(['trackGoal', 1 {dimension1: 'TEST'}]);">Click Me</button>
or this:
<button onclick="javascript:_paq.push(['setCustomDimension', customDimensionId = 1, customDimensionValue = 'TEST2']);">Click Me</button>
However, I can get this to work if I put it my footer:
_paq.push(['setCustomDimension', customDimensionId = 1, customDimensionValue = 'TEST2
Have I found a bug or am I missing something?
piwik version 2.16.0.
ubuntu
Posts: 1
Participants: 1