# Google Analytics JS Code. Where does it go?

**URL:** <https://forums.realmacsoftware.com/t/google-analytics-js-code-where-does-it-go/25860>\
**Category:** RapidWeaver Classic\
**Created:** [March 19, 2019, 1:44pm UTC](https://forums.realmacsoftware.com/t/google-analytics-js-code-where-does-it-go/25860 "2019-03-19T13:44:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruce](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bruce/32/23155_2.png) [@bruce](https://forums.realmacsoftware.com/u/bruce)\
**Post date:** [March 19, 2019, 1:44pm UTC](https://forums.realmacsoftware.com/t/google-analytics-js-code-where-does-it-go/25860/1 "2019-03-19T13:44:35Z")

</div>

I have the Google Analytics JS code generated by Google Analytics. Where do I put the code in my RW project? I put it in Settings/Code/Javascript but [seositecheckup.com](http://seositecheckup.com) does not see it. Here’s my site:

[https://thriftycabinets.com](https://thriftycabinets.com)

---

<div class="post-metadata">

**Author:** ![NeilUK](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/neiluk/32/23434_2.png) [@NeilUK](https://forums.realmacsoftware.com/u/NeilUK)\
**Post date:** [March 19, 2019, 1:56pm UTC](https://forums.realmacsoftware.com/t/google-analytics-js-code-where-does-it-go/25860/2 "2019-03-19T13:56:53Z")

</div>

The best place is in the “head” part of the main “code” section.

---

<div class="post-metadata">

**Author:** ![bruce](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bruce/32/23155_2.png) [@bruce](https://forums.realmacsoftware.com/u/bruce)\
**Post date:** [March 19, 2019, 3:11pm UTC](https://forums.realmacsoftware.com/t/google-analytics-js-code-where-does-it-go/25860/3 "2019-03-19T15:11:05Z")

</div>

Ok, I moved it to the Head section. That doesn’t make a lot of sense to me, but so be it! Thanks.

I just checked the SEO test results again, and now it says all is good with the Google Analytics code. Thanks again Neil.

---

<div class="post-metadata">

**Author:** ![NeilUK](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/neiluk/32/23434_2.png) [@NeilUK](https://forums.realmacsoftware.com/u/NeilUK)\
**Post date:** [March 19, 2019, 3:15pm UTC](https://forums.realmacsoftware.com/t/google-analytics-js-code-where-does-it-go/25860/4 "2019-03-19T15:15:47Z")

</div>

Google actually specifically states it should go in the head section. I think they want it to load and count before anything else could stop it rendering correctly. [https://support.google.com/analytics/answer/1008080?hl=en](https://support.google.com/analytics/answer/1008080?hl=en)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [April 19, 2019, 1:15am UTC](https://forums.realmacsoftware.com/t/google-analytics-js-code-where-does-it-go/25860/5 "2019-04-19T01:15:58Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
