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

Implement URL replacement for client ids available to amp-analytics #1146

Merged
merged 1 commit into from
Dec 12, 2015

Conversation

cramforce
Copy link
Member

Also makes the following changes

Related to #961 #871
Fixes #1124

@cramforce
Copy link
Member Author

CC @btownsend @avimehta

image.height = 1;
// Make it take zero space
this.element.style.width = 0;
this.element.appendChild(image);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we even adding image to DOM?

Copy link
Member Author

Choose a reason for hiding this comment

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

If any reason, just for testing. No good reason to change in this CL.

@cramforce
Copy link
Member Author

PTAL

@dvoytenko
Copy link
Contributor

LGTM

…them to

`amp-analytics`.

Also makes the following changes

- Switches `amp-analytics` to use layoutCallback instead of `buildCallback`. Closes ampproject#1141 and makes the tests more straight forward since they are now async.
- Support for promised based URL replacement
- Support for (right now only one) arguments to URL replacement functions.

Related to ampproject#961 ampproject#871
Fixes ampproject#1124
cramforce added a commit that referenced this pull request Dec 12, 2015
Implement URL replacement for client ids available to amp-analytics
@cramforce cramforce merged commit 49de3bc into ampproject:master Dec 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants