Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 67836

Can’t find old code

$
0
0

Replies: 0

Hi,

I wreally would like to use this plugin to add the tracking codes, except somewhere on my website there is an old code for Google Analytics and Google Tag Manager.

I want to remove this code first, but I cannot find it. Is there a way to locate where the code is placed? I searched in my theme, and functions.php, header, footer etc.

When I right-click on my homepage and view “page-source” I find the following code;

<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-NGSPLM');</script>

Does somebody know where I can remove this? Any help much appricated.


Viewing all articles
Browse latest Browse all 67836

Trending Articles