Title: Deactivate plugin without removing GA code?
Last modified: December 9, 2017

---

# Deactivate plugin without removing GA code?

 *  Resolved [annrochelle](https://wordpress.org/support/users/annrochelle/)
 * (@annrochelle)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/deactivate-plugin-without-removing-ga-code/)
 * Hi – Once I’ve used the plug-in to add the Google Analytics code to my site’s
   header, is there a way to remove the plug-in without removing the GA code? It
   seems like the job of the plug-in is finished after the installation, after I
   confirm that traffic data is showing up in GA itself, right? But when I deactivate
   the plug-in the GA code is no longer visible in my site’s home page source code,
   then when I activate it again the GA code comes back. Do I need to leave the 
   plug-in installed permanently? Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdeactivate-plugin-without-removing-ga-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/deactivate-plugin-without-removing-ga-code/#post-9765687)
 * The plugin adds the code via your theme’s header or footer hooks (depending on
   settings), which requires the plugin to be activated in order to work. If you
   want to skip the plugin, you can add the code manually in either of those locations.
   Cheers

Viewing 1 replies (of 1 total)

The topic ‘Deactivate plugin without removing GA code?’ is closed to new replies.

 * ![](https://ps.w.org/ga-google-analytics/assets/icon-256x256.png?rev=2053004)
 * [GA Google Analytics – Connect Google Analytics to WordPress](https://wordpress.org/plugins/ga-google-analytics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ga-google-analytics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ga-google-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/ga-google-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ga-google-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ga-google-analytics/reviews/)

## Tags

 * [deactivate](https://wordpress.org/support/topic-tag/deactivate/)
 * [remove](https://wordpress.org/support/topic-tag/remove/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/deactivate-plugin-without-removing-ga-code/#post-9765687)
 * Status: resolved