Skip to content

Commit

Permalink
Remove NOSCRIPT iframe (we already are in js)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephaneGraziano committed Nov 25, 2020
1 parent e8f66e9 commit a10374c
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,6 @@ export class GoogleTagManagerService {
);
doc.head.insertBefore(gtmScript, doc.head.firstChild);

const ifrm = doc.createElement('iframe');
ifrm.setAttribute(
'src',
this.applyGtmQueryParams('https://www.googletagmanager.com/ns.html')
);
ifrm.style.width = '0';
ifrm.style.height = '0';
ifrm.style.display = 'none';
ifrm.style.visibility = 'hidden';

const noscript = doc.createElement('noscript');
noscript.id = 'GTMiframe';
noscript.appendChild(ifrm);

doc.body.insertBefore(noscript, doc.body.firstChild);
this.isLoaded = true;
}

Expand Down

0 comments on commit a10374c

Please sign in to comment.