amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Support AdWords tracking URLs in viewerless AMP

Open sucharithav opened this issue 8 years ago • 1 comments

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

sucharithav avatar May 04 '18 19:05 sucharithav

@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

ericfs avatar May 14 '18 21:05 ericfs