# Add Privatus Analytics to Tilda

> Add privacy-friendly analytics to a Tilda website with the HTML code for the head section in Site Settings, then republish your pages.

1. Open **Site Settings → More**.
2. Under **HTML code for the head section**, choose **Edit Code** and paste the
   snippet:

   ```html
   <script defer src="https://privatusstats.com/js/pa.js" data-site="pa_YOURSITEID" data-modules="engage,auto,vitals,clicks,ask"></script>
   ```

3. Save, then republish all pages so the code is added to them.

To add the script to a single page instead, use **Page Settings →
Additional → HTML code for the head section**. Newer versions of Tilda may
label the site-wide menu **Insert Code** where this page says **More**.
