-
Notifications
You must be signed in to change notification settings - Fork 146
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
Missing whitelisted parameter in "event" method config #118
Comments
There is no documented parameter |
What he refers to is that the library sets params.p = params.p || params.dp || this._context.p || this._context.dp; Which leads to a warning in debug mode:
To reproduce: let chain = this.ga.ua.pageview('/xxx');
chain = chain.event('My category', 'My action');
chain.send(); Run this in debug mode to see warnings. I believe the intention was to use |
Ran into this as well, I used const eventParams = {
ec: category,
ea: action,
el: label,
ev: value,
dp: path,
// userAgentOverride: userAgent,
av: `${process.env.GIT_COMMIT_VERSION || ''}`
};
But the universal-analytics/lib/config.js Line 29 in 8ba84c9
|
p
is missing among the whitelisted params for the.event
method.This results in warnings like this:
Warning! Unsupported tracking parameter p
In config.js I only see these parameters allowed:
The text was updated successfully, but these errors were encountered: