-
Notifications
You must be signed in to change notification settings - Fork 42
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
comscore provider #76
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are my notes!
src/providers/Comscore.js
Outdated
* | ||
* @returns {Array} | ||
*/ | ||
handleCustom(url, params) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the handleCustom()
is even necessary here. Both of the parameters are static and could be mapped in columnMapping()
(account already is).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I put the value of the c1 & c2 parameters in a "General" group without using handleCustom? I would like to call them out in their own group as well as putting them in the "Custom" group since I believe they are the only constant, required parameters that do not change between clients, but are still technically "c##" parameters
src/providers/Comscore.js
Outdated
get columnMapping() { | ||
return { | ||
account: "c2", | ||
requestType: "requestType" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change this to c1
since it already exists in the keys()
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just committed. Does it automatically become part of this PR? I simplified things a bit. |
Yup! I'll review here in a bit. Thanks for the work :) |
This is live! |
Documentation is sparse on Comscore web pixel, but I've gathered that "c" parameters are custom per client, thus I put them in a custom group. The only exceptions being the c1 parameter is the request type (seems to always be "2") and the c2 parameter is the client's ID. I called these out in a General group. Everything else falls into "Other"