Title: Theme functionality issues after installing GTM Code
Last modified: April 9, 2025

---

# Theme functionality issues after installing GTM Code

 *  Resolved [vecteza](https://wordpress.org/support/users/vecteza/)
 * (@vecteza)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/theme-functionality-issues-after-installing-gtm-code/)
 * Hi, whenever we installed Google tag manager script many of features stopped 
   working, issues mentioned bellow
 * 1, product gallery not showing in mobile view
   2, menu icon and tabs not working
   on mobile view3, website loading too slow after enabling gtm4, elementor is not
   loading
 * here is the screen recording of the issue for better understanding: [https://drive.google.com/file/d/1wuy7glkk8GkdRBmS9HDkIwExVdn_XmmE/view?usp=sharing](https://drive.google.com/file/d/1wuy7glkk8GkdRBmS9HDkIwExVdn_XmmE/view?usp=sharing)
    -  This topic was modified 1 year, 1 month ago by [vecteza](https://wordpress.org/support/users/vecteza/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftheme-functionality-issues-after-installing-gtm-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/theme-functionality-issues-after-installing-gtm-code/#post-18407917)
 * Hello [@vecteza](https://wordpress.org/support/users/vecteza/), thanks for getting
   in touch and for sharing a recording of your experience. I’d be happy to look
   further into this for you. To do this, please can you share the following:
    1. Your [Site Health information](https://i.imgur.com/Rtkmsba.png). You can [use this form](https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/)
       to share privately if preferred.
    2. Do you encounter the same when temporarily switching theme to a default WordPress
       theme?
    3. Do you notice any difference when following our troubleshooting steps [here](https://sitekit.withgoogle.com/documentation/troubleshooting/using-troubleshooting-mode/)?
    4. Hhave tried to manually insert the Tag Manager code to your site instead of 
       via Site Kit? If so, do you encounter the same as when Site Kit is placing the
       code for you?
 * Once you have shared the information I can review and share some next steps to
   take if needed. Let me know if you have any questions in the meantime.
 *  Thread Starter [vecteza](https://wordpress.org/support/users/vecteza/)
 * (@vecteza)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/theme-functionality-issues-after-installing-gtm-code/#post-18407961)
 * Hi, i have installed the code manually and it is working perfectly, whenever 
   we activate it through site kit or any other gtm plugin it causes the issues,
   i tested it by deactivating all plugins and activating default theme but the 
   issue happening.
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/theme-functionality-issues-after-installing-gtm-code/#post-18407979)
 * [@vecteza](https://wordpress.org/support/users/vecteza/) Thanks for confirming
   this and interesting to hear. When adding the code manually, do you still connect
   the Tag Manager module within Site Kit? The manually placed code will be detected
   by Site Kit and you can still connect the module. When doing this, do you experience
   the issues and slowdown on your site?
 * It would also be great if you could still share your [Site Health information](https://i.imgur.com/Rtkmsba.png)
   as this may give an indication as to why this is happening on your site. You 
   can [use this form](https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/)
   to share privately if preferred.
 *  Thread Starter [vecteza](https://wordpress.org/support/users/vecteza/)
 * (@vecteza)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/theme-functionality-issues-after-installing-gtm-code/#post-18408011)
 * Yes site slow down and features stopped working when i am connecting gtm with
   site kit, when i am using only manual code it’s working fine. i have also share
   site health info via form.
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/theme-functionality-issues-after-installing-gtm-code/#post-18408103)
 * [@vecteza](https://wordpress.org/support/users/vecteza/) Do you encounter anything
   similar when connecting any other modules with Site Kit such as Analytics? When
   placing the Tag Manager code on your site, Site Kit uses the recommended code
   for Tag Manager and so the process is the same as when you are placing the code
   yourself manually.
 * More information on Site Kit and the source code it places on your site can be
   found [here](https://sitekit.withgoogle.com/documentation/using-site-kit/site-kit-and-your-sites-source-code/).
   This is broken down into each module. While it’s expected that inserting code
   for these services may have a small impact on site performance, we wouldn’t expect
   to see the drop as you’ve shown in your recording.
 * If you could try connecting some other modules that would help us to see if this
   is specific to Tag Manager.
 *  Thread Starter [vecteza](https://wordpress.org/support/users/vecteza/)
 * (@vecteza)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/theme-functionality-issues-after-installing-gtm-code/#post-18408125)
 * Thanks for the prompt response, i have checked again and i notice that there 
   is something wrong with GTM code whenever i insert the code site starting issues,
   please let me know how i can share admin details you can go through it by yourself,
   i hope this will save our time.
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/theme-functionality-issues-after-installing-gtm-code/#post-18408146)
 * [@vecteza](https://wordpress.org/support/users/vecteza/) No problem at all. It’s
   possible that when Site Kit places the code on your site that a third party plugin
   or configuration on your site may be altering or blocking the Site Kit placed
   code. I do see that you have the LiteSpeed Cache plugin active on your site. 
   Caching and optimization plugins have been known to alter or even block Site 
   Kit placed code on users sites. You could try to manually disable this plugin
   and check back again. I’d suggest trying this with other plugins also as this
   sounds to be what’s happening when Site Kit is placing the code.
 * Any information you wish to send our way can be done so via the private form 
   you shared above. Let me know how you get on with the above. I’d also be happy
   to check your source code if you use Site Kit to place your GTM code once more
   to see if I can spot anything.
 *  Thread Starter [vecteza](https://wordpress.org/support/users/vecteza/)
 * (@vecteza)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/theme-functionality-issues-after-installing-gtm-code/#post-18408156)
 * Issues causing by gtm code, analytics and other services are not causing any 
   problems, i have also tried by deactivating cache plugin but issue not solved.
   i am removing manual code and connecting gtm via site kit again for your review
   and sharing admin details via form
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/theme-functionality-issues-after-installing-gtm-code/#post-18408174)
 * [@vecteza](https://wordpress.org/support/users/vecteza/) Thanks for confirming
   with other modules connected. I have checked your source code and the Site Kit
   placed code looks as I would expect it to so I don’t see any issues there. To
   rule out any sort of third party plugin conflict, is it possible for you to manually
   deactivate all other plugins one by one and checking to see if you encounter 
   the same performance issues?
 * If we can rule that out then we can continue to troubleshoot elsewhere to see
   if we can pinpoint the cause here. If you can’t perform the above then let me
   know.
 *  Thread Starter [vecteza](https://wordpress.org/support/users/vecteza/)
 * (@vecteza)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/theme-functionality-issues-after-installing-gtm-code/#post-18408175)
 * i have notice another thing when i am switching my location to us or another 
   country via vpn then site loading perfectly but not when i am using my original
   country location, same thing happening with our customers they reported us.
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/theme-functionality-issues-after-installing-gtm-code/#post-18408180)
 * [@vecteza](https://wordpress.org/support/users/vecteza/) Interesting and thanks
   for sharing this information. This is sounding like it may be a hosting/server
   issue. I’d suggest contacting your hosting provider at this stage to see if they
   can investigate as to why this may be happening on your website.
 * I’ll be happy to continue troubleshooting with you if you still encounter issues
   after this however I am limited to support for Site Kit and as this doesn’t look
   to be a Site Kit specific issue I am limited in how I can help. Feel free to 
   let me know how you get on with your hosting provider.
 * If you have any further questions or issues with Site Kit specifically then please
   do let me know.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Theme functionality issues after installing GTM Code’ is closed to new
replies.

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3141863)
 * [Site Kit by Google - Analytics, Search Console, AdSense, Speed](https://wordpress.org/plugins/google-site-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-site-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-site-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/google-site-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-site-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-site-kit/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/theme-functionality-issues-after-installing-gtm-code/#post-18408180)
 * Status: resolved