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

Missing whitelisted parameter in "event" method config #118

Open
maxijb opened this issue Oct 13, 2018 · 3 comments
Open

Missing whitelisted parameter in "event" method config #118

maxijb opened this issue Oct 13, 2018 · 3 comments

Comments

@maxijb
Copy link

maxijb commented Oct 13, 2018

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:

  // Event Tracking
   "ec", "ea", "el", "ev",
@jtillmann
Copy link
Member

There is no documented parameter p for the Measurement Protocol. Would you elaborate what you're referring to?

@jarrodek
Copy link

What he refers to is that the library sets p parameter in the event function:

params.p = params.p || params.dp || this._context.p || this._context.dp;

Which leads to a warning in debug mode:

universal-analytics Warning! Unsupported tracking parameter p (/xxx) +3ms

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 dp parameter (document path) which can be combined with events.

@Vadorequest
Copy link

Vadorequest commented Feb 22, 2019

Ran into this as well, I used dp as follow:

const eventParams = {
        ec: category,
        ea: action,
        el: label,
        ev: value,
        dp: path,
        // userAgentOverride: userAgent,
        av: `${process.env.GIT_COMMIT_VERSION || ''}`
      };

universal-analytics Warning! Unsupported tracking parameter p (/idrac/chatbot/_student-solutions)

But the dp is there at

"dl", "dh", "dp", "dt", "cd", "linkid",

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

4 participants