# Google Analytics not showing in head

**URL:** <https://forums.realmacsoftware.com/t/google-analytics-not-showing-in-head/31879>\
**Category:** RapidWeaver Classic\
**Created:** [March 23, 2020, 10:52am UTC](https://forums.realmacsoftware.com/t/google-analytics-not-showing-in-head/31879 "2020-03-23T10:52:40Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![JanSteele](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/jansteele/32/2455_2.png) [@JanSteele](https://forums.realmacsoftware.com/u/JanSteele)\
**Post date:** [March 23, 2020, 10:52am UTC](https://forums.realmacsoftware.com/t/google-analytics-not-showing-in-head/31879/1 "2020-03-23T10:52:40Z")

</div>

On the instruction of a Google operative I pasted some Google Analytics code into the Head section of my site and published. It didn’t show when we checked it. Any idea what I might be doing wrong?

Using RW 8.5.1

---

<div class="post-metadata">

**Author:** ![pmjd](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/pmjd/32/18671_2.png) [@pmjd](https://forums.realmacsoftware.com/u/pmjd)\
**Post date:** [March 23, 2020, 11:47am UTC](https://forums.realmacsoftware.com/t/google-analytics-not-showing-in-head/31879/2 "2020-03-23T11:47:07Z")

</div>

Have you cleared the cache of the browser you used to check it with? If not you might be seeing the “old” version of your site before the changes were made.

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [March 23, 2020, 12:21pm UTC](https://forums.realmacsoftware.com/t/google-analytics-not-showing-in-head/31879/3 "2020-03-23T12:21:42Z")

</div>

Could you provide a URL to the page?

When you say “it didn’t show when we checked it”, how are you checking?

Without knowing what you pasted into the head section it’s not easy to tell what might be happening.

---

<div class="post-metadata">

**Author:** ![JanSteele](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/jansteele/32/2455_2.png) [@JanSteele](https://forums.realmacsoftware.com/u/JanSteele)\
**Post date:** [March 23, 2020, 12:50pm UTC](https://forums.realmacsoftware.com/t/google-analytics-not-showing-in-head/31879/4 "2020-03-23T12:50:34Z")

</div>

Thanks for your replies. I’ve cleared the cache and reloaded the site and the code is still not showing in the Head.

The URL is [http://www.jazzandsalsa.co.uk](http://www.jazzandsalsa.co.uk)

I pasted this in

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [March 23, 2020, 1:18pm UTC](https://forums.realmacsoftware.com/t/google-analytics-not-showing-in-head/31879/5 "2020-03-23T13:18:48Z")

</div>

I don’t see anything that looks like Analytics(gtag.js) in the head section.

The code should have looked something like this:

```auto
<!-- Global Site Tag (gtag.js) - Google Analytics -->

... (several lines of customized programming code appear here)

</script>

```

if the block doesn’t look. like that then go back to the “Google operative” and get the proper code.

Since the first line that google gives you is a comment `<!-- Global Site Tag (gtag.js) - Google Analytics -->` and that’s not even showing up it could be that the publishing didn’t work. Could you change something else on a page and check to see if it shows up?  
More info is available here:  
[https://support.google.com/analytics/answer/1008080](https://support.google.com/analytics/answer/1008080)

---

<div class="post-metadata">

**Author:** ![JanSteele](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/jansteele/32/2455_2.png) [@JanSteele](https://forums.realmacsoftware.com/u/JanSteele)\
**Post date:** [March 29, 2020, 7:22pm UTC](https://forums.realmacsoftware.com/t/google-analytics-not-showing-in-head/31879/6 "2020-03-29T19:22:36Z")

</div>

When I try to paste the Google code into my post on this forum it doesn’t appear in the post. (I tried clicking the code button above and it says to indent the code by 4 spaces. I did that and pasted the code but only the first line shows in my post, so I’m not sure what it is I am doing wrong.) The Google analytics code is definitely there in the Head section of the Code window. Here’s a screenshot. If it isn’t getting published what can I do about it?

`https://www.dropbox.com/s/utt010d0hmd0wkt/Screenshot%202020-03-29%2020.24.41.png?dl=0`

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [March 29, 2020, 7:25pm UTC](https://forums.realmacsoftware.com/t/google-analytics-not-showing-in-head/31879/7 "2020-03-29T19:25:11Z")

</div>

You can’t post code onto the forum without marking it as code `</>`

 ![2020-03-24_12-29-16](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/8/0/8042547cee968481d3ace4b7b9e97647a0c1abe5.jpeg)

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [March 29, 2020, 7:49pm UTC](https://forums.realmacsoftware.com/t/google-analytics-not-showing-in-head/31879/9 "2020-03-29T19:49:25Z")

</div>

> [@JanSteele](#):
>
> [Dropbox - File Deleted - Simplify your life](https://www.dropbox.com/s/utt010d0hmd0wkt/Screenshot%202020-03-29%2020.24.41.png?dl=0)

That code isn’t showing up on the URL you gave above.

> [@teefers](#):
>
> Could you change something else on a page and check to see if it shows up?

---

<div class="post-metadata">

**Author:** ![JanSteele](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/jansteele/32/2455_2.png) [@JanSteele](https://forums.realmacsoftware.com/u/JanSteele)\
**Post date:** [March 30, 2020, 8:41am UTC](https://forums.realmacsoftware.com/t/google-analytics-not-showing-in-head/31879/10 "2020-03-30T08:41:59Z")

</div>

Ok I did that - just one word on the Home Page, and although RW gave me the message that it was published it doesn’t show up online.

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [March 30, 2020, 1:24pm UTC](https://forums.realmacsoftware.com/t/google-analytics-not-showing-in-head/31879/11 "2020-03-30T13:24:06Z")

</div>

Assuming you have cleared your browser cache or checked with a different browser, that tells us you’re having a publishing issue.

If you aren’t getting any error messages when you publish, double check the path in the settings.

---

<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 29, 2020, 11:24pm UTC](https://forums.realmacsoftware.com/t/google-analytics-not-showing-in-head/31879/12 "2020-04-29T23:24:06Z")

</div>

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