MCPcopy
hub / github.com/ampproject/amphtml / shouldAppendExtraParams

Function shouldAppendExtraParams

src/impression.js:282–288  ·  view source on GitHub ↗
(ampdoc)

Source from the content-addressed store, hash-verified

280 * @return {!Promise<boolean>}
281 */
282export function shouldAppendExtraParams(ampdoc) {
283 return ampdoc.whenReady().then(() => {
284 return !!ampdoc
285 .getBody()
286 .querySelector('amp-analytics[type=googleanalytics]');
287 });
288}
289
290/**
291 * Return the extra url params string that should be appended to outgoing link

Callers 2

test-impression.jsFile · 0.90
constructorMethod · 0.90

Calls 3

thenMethod · 0.45
whenReadyMethod · 0.45
getBodyMethod · 0.45

Tested by

no test coverage detected