React Router
1.Site analytics
- Open the site in Studio and copy the Embed snippet.
- Open the document shell (
index.html) or the root route layout that wraps every page. - Paste the snippet once before
</body>, or mount an equivalent deferred script in the root layout component. - Deploy.
- Navigate a few client-side routes and confirm visits in Site Analytics.
Load the script at the document level. Do not remount it on every client navigation.
2.Blog
- Open the site in Studio and go to Settings β Domain.
- Connect
blog.yourdomain.com, add the CNAME Studio shows, then verify. - In the root layout, add a Blog link to
https://blog.yourdomain.com. - To render posts inside the app instead, open Settings β API and use the public list and post endpoints.