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

bug when logging events with an event value of 0 #92

Open
sjungwirth opened this issue Nov 8, 2017 · 0 comments
Open

bug when logging events with an event value of 0 #92

sjungwirth opened this issue Nov 8, 2017 · 0 comments

Comments

@sjungwirth
Copy link

When logging multiple events, if an event (not the first) has an event value of zero (0), it is discarded due to these lines:

params.ev = value || params.ev || this._context.ev;

_tidyParameters: function (params) {
for (var param in params) {
if (params[param] === null || params[param] === undefined) {
delete params[param];
}
}
return params;
},

This combined with the batch request will result in the event inheriting the value from the previous event when it is processed by GA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant