For the complete documentation index, see llms.txt. This page is also available as Markdown.

Analytics

Add analytics and tracking code to your website

If you’d like to track traffic or integrate services like Google Analytics or Google Tag Manager, you’ll need to add their code snippets to your project. Where you add the code depends on whether you want it to apply to all pages or just one.

Add Tracking to Every Page

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 <head>, such as Google Analytics or similar.

    • After the opening <body> tag for content such as Google Tag Manager’s <noscript> block.

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

Site template editor with analytics code added before the closing body tag
Adding site-wide code to the Template area.

Add Tracking to an Individual Page

If you only want to add tracking code to a specific page:

  1. Select the page in the sidebar.

  2. Click the Edit Extra Code button in the Page Inspector.

  3. Choose the correct code area from the list on the left (e.g. Head Start, Body Start).

  4. Paste your code snippet in the appropriate section.

The code will only be included on that specific page when you publish or preview your site.

Page code editor with the page-specific Body End section selected
Adding code to a specific page.

Last updated

Was this helpful?