• Resolved awaisx99

    (@awaisx99)


    I want to ask that here its my client website and he demand to remove these scripts from source code

    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-130431910-1"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
     gtag('config', 'UA-130431910-1');
    </script>  AND <!-- Google Tag Manager -->
    <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=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-KGT943S');</script>  AND <!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KGT943S" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript)

    I already had del all the plugins and installed new one for new tag but that scripts are not gonna be removed even after deleting plugin, the new plugin which operating is “GTM4WP” and tag’s workin fine, just one thing gonna happening is the records we get in duplicate readings. lemme know how can i get these scripts out via cpanel or themefile, I’ve checked header, footer and other files where that could be inserted.

    Thanks!

    • This topic was modified 1 year ago by awaisx99.
Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi @awaisx99. I can’t see the tags that you wrote because it looks like they were stripped away. Maybe you can create a “Code” block in a comment reply and paste the contents of those scripts into there. You can do this via the blue Plus icon if it’s there in your reply box.

    Otherwise it sounds like you are having trouble finding what is putting those scripts on your site. It’s possible that your theme could be adding them as well. You can share what theme is in use, or share a link to the website to make it easier to see what’s happening.

    Thread Starter awaisx99

    (@awaisx99)

    yeah, ur right, just a sec

    Thread Starter awaisx99

    (@awaisx99)

    one script using this ID: id=UA-130431910-1

    and second using this ID: GTM-KGT943S

    Thread Starter awaisx99

    (@awaisx99)

    website: perimtec.com and theme is Divi

    Thread Starter awaisx99

    (@awaisx99)

    You might consider looking under the extra theme options in Divi to see if there’s custom content adding that SCRIPT and those tags. If that’s the case, I would recommend copying the contents of the text boxes in case something goes wrong, and then clearing out the Google Tag code you see. This should remove the duplicate Google Tags code if it’s there.

    Thread Starter awaisx99

    (@awaisx99)

    Actually the website is up for SEO and 1000 of backlinks acquired in fewer years, also too much campaigns are running on facebook and google, That why i just want to ask is there any possibility that a code showing over google inspect tool, can we trace that code from wordpress Source from C panel?

    Thread Starter awaisx99

    (@awaisx99)

    Kindly have look into source using right click and ‘View page source option’, there you can serch for provided IDs. you could see the scripts over there.

    I’m sorry, @awaisx99, I’m having trouble understanding what exactly you are asking. Are you attempting to find a way to login to Google and manage your Google Tags account and the campaigns it adds? or are you seeing Google Tags Manager being added twice for the same page views and want to remove one of them? can you try to reword your request and help me understand more specifically what you are after?

    Thread Starter awaisx99

    (@awaisx99)

    are you seeing Google Tags Manager being added twice for the same page views and want to remove one of them? exactly this one

    are you seeing Google Tags Manager being added twice for the same page views and want to remove one of them? exactly this one

    Did you look into your Divi Theme Options under the Integration tab to see if there’s code manually adding the duplicate copy?

    Thread Starter awaisx99

    (@awaisx99)

    ok lemme chk

    Thread Starter awaisx99

    (@awaisx99)

    I’ve got it, thank alot. I’m just not familiar with that theme. Thnks Alot.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘i Need help to remover fewer code scripts from my wp site.’ is closed to new replies.