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

Add support for Nielsen analytics #9356

Merged
10 commits merged into from May 23, 2017
Merged

Add support for Nielsen analytics #9356

10 commits merged into from May 23, 2017

Conversation

uniquelygeneric
Copy link
Contributor

In reference to ampproject/amphtml issue #3337.

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@lannka lannka added this to Ads backlog in 3P Ads & Analytics Support May 16, 2017
@uniquelygeneric
Copy link
Contributor Author

@avimehta, can you help identify what the Travis error is? It says there is an unexpected token in the examples file, but I don't see anything wrong with the formatting.

@lannka lannka self-assigned this May 16, 2017
},
'request': 'cloudapi',
},
'transport': {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're missing an closing } here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this!

'request': 'cloudapi',
},
'transport': {
'beacon': false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just want to check that your server does not support sendBeacon, which is recommended.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this was on purpose. Our server only accepts GET requests.

'on': 'visible',
'request': 'session',
},
'visible': {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can merge this with init:

'request': ['session', 'cloudapi'],

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@lannka lannka moved this from Ads backlog to Analytics backlog in 3P Ads & Analytics Support May 16, 2017
@lannka lannka moved this from Analytics backlog to In Review in 3P Ads & Analytics Support May 16, 2017
Copy link
Contributor

@lannka lannka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some more cosmetic comments

'segC': 'NA',
},
'requests': {
'session': 'https://uaid-linkage.imrworldwide.com/cgi-bin/gn?prd=session&c13=asid,P${apid}&sessionId=${clientId(imrworldwide)},&pingtype=4&enc=false&c61=createtm,${timestamp}&rnd=${random}',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for readability, can you also extract clientId to a var?

'cloudapi': 'https://cloudapi.imrworldwide.com/nmapi/v2/${apid}/${clientId(imrworldwide)}/a?b=%7B%22devInfo%22%3A%7B%22devId%22%3A%22${clientId(imrworldwide)}%22%2C%22apn%22%3A%22${apn}%22%2C%22apv%22%3A%22${apv}%22%2C%22apid%22%3A%22${apid}%22%7D%2C%22metadata%22%3A%7B%22static%22%3A%7B%22type%22%3A%22static%22%2C%22section%22%3A%22${section}%22%2C%22assetid%22%3A%22${pageViewId}%22%2C%22segA%22%3A%22${segA}%22%2C%22segB%22%3A%22${segB}%22%2C%22segC%22%3A%22${segC}%22%2C%22adModel%22%3A%220%22%2C%22dataSrc%22%3A%22cms%22%7D%2C%22content%22%3A%7B%7D%2C%22ad%22%3A%7B%7D%7D%2C%22event%22%3A%22playhead%22%2C%22position%22%3A%22${timestamp}%22%2C%22data%22%3A%7B%22hidden%22%3A%22${backgroundState}%22%2C%22blur%22%3A%22${backgroundState}%22%2C%22position%22%3A%22${timestamp}%22%7D%2C%22type%22%3A%22static%22%2C%22utc%22%3A%22${timestamp}%22%2C%22index%22%3A%22${requestCount}%22%7D',
},
'triggers': {
'init': {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

init -> visible

@@ -890,6 +890,45 @@ export const ANALYTICS_CONFIG = /** @type {!JSONType} */ ({
},
},

'nielsen': {
'vars': {
'apid': '',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to specify. it's by default empty string

@lannka
Copy link
Contributor

lannka commented May 16, 2017

please fix the travis build. and also follow the googlebot to sign CLA

@uniquelygeneric
Copy link
Contributor Author

@googlebot, CLA signed for Nielsen

@lannka
Copy link
Contributor

lannka commented May 17, 2017

Once you've signed, please reply here (e.g. I signed it!) and we'll verify.

Try this.

@uniquelygeneric
Copy link
Contributor Author

I signed it!

@lannka
Copy link
Contributor

lannka commented May 17, 2017

@uniquelygeneric

If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
If you signed the CLA as a corporation, please let us know the company's name.

@uniquelygeneric
Copy link
Contributor Author

@lannka this was signed under kale.smith@nielsen.com on Nielsen's behalf.

@lannka
Copy link
Contributor

lannka commented May 17, 2017

It should be either the code author or the corp sign it. Can you either sign it yourself or ask Kale to sign it using corp's name?

@uniquelygeneric
Copy link
Contributor Author

@lannka I am Kale and I signed the contract with Nielsen's name...I'm not sure why it's not getting picked up by the bot

@ghost
Copy link

ghost commented May 18, 2017

I will investigate with CLA on this.

@uniquelygeneric
Copy link
Contributor Author

@bpaduch The CLA should have been signed by the appropriate party now. Thanks!

@jooj123
Copy link

jooj123 commented May 23, 2017

Can we get this one merged?

@uniquelygeneric
Copy link
Contributor Author

Yes, we've received the signed copy of the CLA, so I don't see anything holding this back anymore.

@bpaduch, is there anything I can do to help push this along?

@ghost
Copy link

ghost commented May 23, 2017

@uniquelygeneric - I'm waiting on response from the CLA team on status before proceeding. As soon as I get details, I'll advise.

@ghost
Copy link

ghost commented May 23, 2017

Hi @uniquelygeneric, the CLA for Nielsen is registered under the following group: googleclientservicecoreteam@nielsen.com. Please make sure your email is a member of that group. Check with the manager of that group (Cicely) to verify you're part of it. If the CLA still doesn't work, I'll escalate further.

@uniquelygeneric
Copy link
Contributor Author

@bpaduch I have been added to that list, but it could take 24-48 hours for your systems to update. Is there anything that can be done to ensure this doesn't delay the merge by another week?

@jridgewell
Copy link
Contributor

@erwinmombay: Can you force merge this?

@googlebot
Copy link

CLAs look good, thanks!

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

6 participants