Quantcast
Channel: Matomo forums - Latest topics
Viewing all articles
Browse latest Browse all 13974

Cannot set custom dimension on event

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 13974

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>