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

Use a proper correlator value for doubleclick.js #1904

Merged
merged 1 commit into from
Feb 11, 2016
Merged

Use a proper correlator value for doubleclick.js #1904

merged 1 commit into from
Feb 11, 2016

Conversation

gduchene
Copy link
Contributor

No description provided.

const pageViewId = window.context.pageViewId;
let correlator = null;
try {
correlator = pageViewId + (clientId.replace(/\D/g, '') % 1e6) * 1e6;
Copy link
Member

Choose a reason for hiding this comment

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

Instead of the try-block, could you just null check for clientId?

@gduchene
Copy link
Contributor Author

Done!

@cramforce
Copy link
Member

LGTM

@cramforce cramforce added the LGTM label Feb 11, 2016
cramforce added a commit that referenced this pull request Feb 11, 2016
Use a proper correlator value for doubleclick.js
@cramforce cramforce merged commit 63f786b into ampproject:master Feb 11, 2016
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

Successfully merging this pull request may close these issues.

2 participants