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
The JS Tracking API states the following: "To define a dimension value pass an object defining one or multiple properties as the last parameter".
However, when I try to track: _paq.push(["trackEvent", "category", "action", "name", {dimension1: "fr"}]);
it considers the last parameter as "trackevent value" instead as "customData".
It is not meant as in we automatically use the last parameter sent to the method. It's meant as in the last parameter when all parameters are set. I will update the docs.
The JS Tracking API states the following: "To define a dimension value pass an object defining one or multiple properties as the last parameter".
However, when I try to track:
_paq.push(["trackEvent", "category", "action", "name", {dimension1: "fr"}]);
it considers the last parameter as "trackevent value" instead as "customData".
The problem is in the following method:
https://github.com/piwik/piwik/blob/023d80496bf3cc02a7f6141243e55e3fb262c647/js/piwik.js#L4615
We probably need to check the last parameter whether it is of type Object or simply a string/integer.
The text was updated successfully, but these errors were encountered: