Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 2.06 KB

File metadata and controls

43 lines (28 loc) · 2.06 KB
description Add analytics and tracking code to your website
icon chart-simple

Analytics

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.

{% hint style="success" %}

Recommended Analytics Service (GDPR Compliant)

We recommend Fathom Analytics, which is easier to understand and use than Google Analytics. Fathom is GDPR compliant and doesn’t require cookie notices. {% endhint %}

{% embed url="https://www.youtube.com/watch?v=sfzIONiv2zY&feature=youtu.be" %}

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.