Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

Append Values to Custom Variables (instead of replace) Doable? (1 reply)

$
0
0
Is it possible to modify piwik to append values to custom variables instead of replacing them? That would be GOLDEN! I setup a custom variable called Social Action scope visit, and clicking a social link works and updates the record for the visitor. But as soon as the visitor clicks another social link, the value is replaced. I know that is normal with piwik.

So, basically if a visitor clicked both of these:

onclick: _paq.push(['setCustomVariable',3,'Social Action','Twitter Click','visit'])
onclick: _paq.push(['setCustomVariable',3,'Social Action','Facebook Click','visit'])

It will only show last value...

Social Action = Facebook Click

This would be GOLDEN:

Social Action = Twitter Click, Facebook Click

Really, I would imagine this be a very simple mod. Get current value, append (implode) new value (comma separated) and save.

Can anyone please point me to any information that would help me accomplish this? What file(s) / method(s) would I need to modify? I would be very grateful for any info!

Using 1.12 (just downgraded from 2.0 as it wasn't working :( )
Thank you

Viewing all articles
Browse latest Browse all 4243

Trending Articles