Title: Place Google Analytics Code on WordPress Site
Last modified: May 30, 2024

---

# Place Google Analytics Code on WordPress Site

 *  Resolved [Devin104](https://wordpress.org/support/users/devin104/)
 * (@devin104)
 * [2 years ago](https://wordpress.org/support/topic/place-google-analytics-code-on-wordpress-site/)
 * I have been sent here by James Osborne of Google Site Kit fame.
 * I am seeking step-by-step instructions on how to place my Google Analytics Code
   onto my WordPress Site.
 * As a novice in these matters with a low resolution of knowledge in all things
   Google, Analytics, Code and AdSense guidance in terms the layperson can comprehend
   will be greatly appreciated.
 * How to find my Google Analytics Code would be a great start. 😊
 * Thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplace-google-analytics-code-on-wordpress-site%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [2 years ago](https://wordpress.org/support/topic/place-google-analytics-code-on-wordpress-site/#post-17791084)
 * Thanks for opening an individual support regarding Analytics [@devin104](https://wordpress.org/support/users/devin104/),
   much appreciated. It’s easier to handle specific queries from individual support
   topics.
 * Regarding adding Google Analytics to your site, based on your [previous support topic](https://wordpress.org/support/topic/trust-and-safety-does-not-use-https-1-insecure-request-found/page/2/#post-17790969)
   I gather you’re looking to place the code manually, as opposed to using Site 
   Kit? Just to be sure, I’ll provide details on how to do both:
 * 
   **Using Site Kit to place Google Analytics code on your site:** You’ll find 
   the steps to do this [here](https://sitekit.withgoogle.com/documentation/using-site-kit/managing-analytics/#connectinganalyticsaftersitekitsetup),
   over on the Site Kit plugin website.
 * **Placing Google Analytics code on your manually:** While we’re limited to Site
   Kit support here in the forums, see the steps below, with links to further explanations
   where possible:
    1. Capture the [code snippet to place on your site](https://support.google.com/analytics/answer/9304153?hl=en&ref_topic=14088998&sjid=9646732564580984502-EU#zippy=%2Cadd-the-tag-to-a-website-builder-or-cms-hosted-website-eg-hubspot-shopify-etc:~:text=If%20you%20are%20using%20a%20CMS%20or%20website%20builder%20that%20doesn%27t%20provide%20a%20field%20to%20enter%20your%20Google%20tag%20ID%2C%20you%27ll%20need%20to%20paste%20your%20Google%20tag%20into%20your%20website%20using%20your%20CMS%27s%20custom%20HTML%20feature.).
    2. Place the code snippet on your site (in the same place where you placed your
       AdSense snippet, typically the header.php file of your theme).
    3. Check that Analytics is reporting with your manually placed code snippet, using
       the [Google Analytics real time reporting tool](https://support.google.com/analytics/answer/9271392?hl=en)
       or [Google Tag Assistant](https://tagassistant.google.com/).
 * One thing to note, is that if you’re adding code snippets to the header.php file
   of your theme, it’s better to [use a child theme](https://developer.wordpress.org/themes/advanced-topics/child-themes/),
   so that your additions don’t get overwritten each time there is a theme update.
   We can’t assist with this, given we provide support for Site Kit only.
 * If you need any assistance adding the Google Analytics code snippet to your site
   manually, the product experts over at the [Analytics Help Center](https://support.google.com/analytics/?hl=en#topic=3544906)
   should be able to assist more than we can here in plugin support. Thank you!
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [2 years ago](https://wordpress.org/support/topic/place-google-analytics-code-on-wordpress-site/#post-17808671)
 * As we didn’t receive a response I’ll mark this as resolved. Feel free to [open a new support topic](https://wordpress.org/support/plugin/google-site-kit/#new-post)
   if you continue to encounter issues, or reopen this topic and we’d be happy to
   assist.

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

The topic ‘Place Google Analytics Code on WordPress Site’ 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/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [WordPress](https://wordpress.org/support/topic-tag/wordpress/)

 * 2 replies
 * 2 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/place-google-analytics-code-on-wordpress-site/#post-17808671)
 * Status: resolved