Title: Can&#8217;t find old code
Last modified: December 23, 2016

---

# Can’t find old code

 *  [Erik86](https://wordpress.org/support/users/erik86/)
 * (@erik86)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/cant-find-old-code/)
 * 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 1 replies (of 1 total)

 *  Plugin Contributor [intellywp](https://wordpress.org/support/users/intellywp/)
 * (@intellywp)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/cant-find-old-code/#post-8637146)
 * Hi Erik,
    Thank you for contacting our support! Could you please send us more
   information about how could we reproduce this issue? We need a web page URL, 
   or more, where we can check the source code to see what is going on and, eventually,
   some screenshots of your plugin settings or about how you have defined the script.
   We are following this issue using support email [support@intellywp.com](https://wordpress.org/support/topic/cant-find-old-code/support@intellywp.com?output_format=md).
   For this reason, we close this topic and will continue replying you by email.
 * Thanks, Julie.

Viewing 1 replies (of 1 total)

The topic ‘Can’t find old code’ is closed to new replies.

 * ![](https://ps.w.org/tracking-code-manager/assets/icon-256x256.jpg?rev=2749278)
 * [Tracking Code Manager](https://wordpress.org/plugins/tracking-code-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tracking-code-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tracking-code-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/tracking-code-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tracking-code-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tracking-code-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [intellywp](https://wordpress.org/support/users/intellywp/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/cant-find-old-code/#post-8637146)
 * Status: not resolved