Title: Adding Google Analytics code
Last modified: November 16, 2017

---

# Adding Google Analytics code

 *  [tokyodev](https://wordpress.org/support/users/tokyodev/)
 * (@tokyodev)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/adding-google-analytics-code-5/)
 * I am migrating two of my websites to UnderStrap.
 * In order to add the Google Analytics tracking code, on the first site I created
   a child theme and added the code to the functions.php file. Works great!
 * The second site is small and the “Additional CSS” tab on the customizer will 
   suffice for my needs and therefore would not like to create a child theme just
   to add the Google code. My other themes have areas where I can add script … Does
   UnderStrap? Or do I need to create the child theme?
 * Thank you !
    PS: Love this theme.

Viewing 1 replies (of 1 total)

 *  [understrap](https://wordpress.org/support/users/holger1411/)
 * (@holger1411)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/adding-google-analytics-code-5/#post-9689259)
 * The Additional CSS tab is just for CSS code, not for JavaScript.
    And no, UnderStrap
   did not have an extra JS snipped editor. It´s because wordpress.org did not allow
   this. Means they don´t add themes to the theme repo here with this functionallity.
   The reason is that this is “plugin terretory” and thats not allowed by the wordpress.
   org theme submitting guidelines.
 * But there are plenty of plugins out there for adding GA code. No child theme 
   needed

Viewing 1 replies (of 1 total)

The topic ‘Adding Google Analytics code’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/understrap/1.2.4/screenshot.png)
 * Understrap
 * [Support Threads](https://wordpress.org/support/theme/understrap/)
 * [Active Topics](https://wordpress.org/support/theme/understrap/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/understrap/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/understrap/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [understrap](https://wordpress.org/support/users/holger1411/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/adding-google-analytics-code-5/#post-9689259)
 * Status: not resolved