Question:
I'm trying to add Google Analytics to my website built with the Astro Starlight theme. However, the theme doesn't have a layouts or components folder, which is where most tutorials suggest placing the tracking code.
Here are the steps I've taken so far:
Obtained my Google Analytics tracking ID (e.g., UA-XXXXX-Y). Tried to locate files in the theme where I can insert the tracking code. The structure of the Astro Starlight theme is different from what I'm used to, and I'm not sure where to add the Google Analytics tracking script.
Can anyone guide me on how to properly integrate Google Analytics with the Astro Starlight theme?
Additional Information:
I'm using the latest version of the Astro Starlight theme. The theme doesn't have obvious layouts or components directories. I need a way to include the tracking code in a way that works with this specific theme structure. Thanks in advance for your help!