# Google analytics code goes where?

**URL:** <https://forums.realmacsoftware.com/t/google-analytics-code-goes-where/53278>\
**Category:** Elements\
**Created:** [December 17, 2025, 7:01pm UTC](https://forums.realmacsoftware.com/t/google-analytics-code-goes-where/53278 "2025-12-17T19:01:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![liquidoranges](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@liquidoranges](https://forums.realmacsoftware.com/u/liquidoranges)\
**Post date:** [December 17, 2025, 7:01pm UTC](https://forums.realmacsoftware.com/t/google-analytics-code-goes-where/53278/1 "2025-12-17T19:01:40Z")

</div>

where do I insert my Google analytics code in Elements?

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [December 17, 2025, 7:07pm UTC](https://forums.realmacsoftware.com/t/google-analytics-code-goes-where/53278/2 "2025-12-17T19:07:04Z")

</div>

To include your tracking code on every page of your site:

1. Open the Site Settings window.

2. Select the Template section.

3. Paste your code into either:

- Between the` <head>` tags for anything that belongs in the , such as Google Analytics or similar.

- Between the after the opening `<body>` tag for things like Google Tag Manager’s block.

This ensures your tracking code is included automatically across every page.

[![](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/d/5/d526bc8495ab915b50504ff6743c9af42307a4a6.jpeg "How to Install Google Analytics for Elements") ](https://www.youtube.com/watch?v=sfzIONiv2zY)

> **[Analytics | RapidWeaver Elements Docs](https://docs.realmacsoftware.com/elements-docs/elements/advanced/analytics)**
>
> Adding Analytics code to your website.
