amphtml
amphtml copied to clipboard
Support AdWords tracking URLs in viewerless AMP
Request:
- Get "replace URL" from cache URL, rather than through Viewer-runtime messaging, to support the feature in viewerless surfaces
- Avoid rewriting the window location, so page refresh in viewerless surfaces does not result in a cache miss. Instead override SOURCE_URL and QUERY_PARAM substitutions to use replace URL. Internal bug: b/79259180
@brandondiamond is going to take a look at this.
https://github.com/ampproject/amphtml/blob/faf9c14977d7e0a367c577ef0936c16133a69bd5/src/service/url-replacements-impl.js#L239
https://github.com/ampproject/amphtml/blob/faf9c14977d7e0a367c577ef0936c16133a69bd5/src/service/url-replacements-impl.js#L246