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

On same Webpage, Custom Variables gets appended always to the previous ones. #5302

Closed
anonymous-matomo-user opened this issue Jun 5, 2014 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. worksforme The issue cannot be reproduced and things work as intended.

Comments

@anonymous-matomo-user
Copy link

Q. How can we remove index information of previous tracking attempt's indexed information, from cvar,scope='page' variable ?

Scenario :

I am working currently on project that includes Liferay Portal integrated with Springs and hibernate.

There are two sections on single page

  1. Browse section
  2. Search section

Search section has one integrated button of Download. In download section, we have applied tracking for few things by using 'setCustomVariable' of piwik.js, and output of call to piwik.php comes like

cvar output(through HTTPFox) :

{"1":Download","155231","3":["source","portal"]}


Now when we apply tracking through 'setCustomVariable' in Browse section(on same page), we get

"1":Download","155231"...

appended to our new piwik.php call. Comes like :

{"1":Download","155231","3":["source","portal"],"9":["ASSET","37"]}


Expected Output :

{"9":["ASSET","37"]}

In next tracking attempt(Browse on same page where search has been done).

Keywords: Custom Variable, cvar, tracking, setCustomVariable

@mattab
Copy link
Member

mattab commented Jun 7, 2014

Please ask question in the forums rather than here on our issue tracker. http://forum.piwik.org/

Also please post the exact code you use to replicate the problem, as it will help us help you. Cheers

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

2 participants