# How to set up Advanced Analytics in Niantic Studio

**URL:** <https://forum.8thwall.com/t/how-to-set-up-advanced-analytics-in-niantic-studio/7998>\
**Category:** Technical Support\
**Created:** [August 8, 2025, 2:59pm UTC](https://forum.8thwall.com/t/how-to-set-up-advanced-analytics-in-niantic-studio/7998 "2025-08-08T14:59:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lerma\_DX](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@Lerma\_DX](https://forum.8thwall.com/u/Lerma_DX)\
**Post date:** [August 8, 2025, 2:59pm UTC](https://forum.8thwall.com/t/how-to-set-up-advanced-analytics-in-niantic-studio/7998/1 "2025-08-08T14:59:28Z")

</div>

Do I need to just create a head.html, gtm.html simmilar to the editor?

> **[Advanced Analytics | 8th Wall](https://www.8thwall.com/docs/legacy/guides/advanced-topics/advanced-analytics/)**
>
> 8th Wall projects provide basic usage analytics,

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [August 8, 2025, 5:08pm UTC](https://forum.8thwall.com/t/how-to-set-up-advanced-analytics-in-niantic-studio/7998/2 "2025-08-08T17:08:29Z")

</div>

> [@Customize HTML in the Niantic Studio?](https://forum.8thwall.com/t/customize-html-in-the-niantic-studio/4533/2):
>
> Hi Amitri! Yes, it’s possible! Here’s an example of what you’d put in your custom component. Make sure to put the custom component on an entity in your scene. add: (world, component) =\> { const analytics = document.createElement('script') analytics.setAttribute('async') analytics.src = 'https://www.googletagmanager.com/gtag/js?id=TAG\_ID' analytics.addEventListener('load', () =\> { window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(argume…
