Installation guide

React Router

1.Site analytics

  1. Open the site in Studio and copy the Embed snippet.
  2. Open the document shell (index.html) or the root route layout that wraps every page.
  3. Paste the snippet once before </body>, or mount an equivalent deferred script in the root layout component.
  4. Deploy.
  5. 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

  1. Open the site in Studio and go to Settings β†’ Domain.
  2. Connect blog.yourdomain.com, add the CNAME Studio shows, then verify.
  3. In the root layout, add a Blog link to https://blog.yourdomain.com.
  4. To render posts inside the app instead, open Settings β†’ API and use the public list and post endpoints.