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 special whitelisted iframe ping transport. #1993

Merged
merged 1 commit into from
Feb 13, 2016

Conversation

cramforce
Copy link
Member

This allows analytics vendors to transition into amp-analytics before they are ready to fully use it.
It only works for page view pings and cannot be used from customer configs.

if (to === null || to === undefined) {
to = {};
}

for (const property in from) {
assert(opt_predefinedConfig || property != 'iframePing',
'iframePing config is only available to vendor config.');
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure putting a specific error message in a generic function is a good idea.

Copy link
Member Author

Choose a reason for hiding this comment

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

Watcha gonna do :)

@jmadler
Copy link
Contributor

jmadler commented Feb 12, 2016

Added a note, LGTM otherwise

@avimehta
Copy link
Contributor

lgtm.

This allows analytics vendors to transition into amp-analytics before they are ready to fully use it.
It only works for page view pings and cannot be used from customer configs.
cramforce added a commit that referenced this pull request Feb 13, 2016
Add special whitelisted iframe ping transport.
@cramforce cramforce merged commit 145b32d into ampproject:master Feb 13, 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.

3 participants