# Add Privatus Analytics to Softr

> Add privacy-friendly analytics to a Softr app by pasting the snippet into the header section of Custom Code in the Settings panel.

1. Open the **Settings** panel from the left-side toolbar and go to **Custom
   Code**.
2. Paste the snippet into the **Header** section:

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

3. Save and publish.

Softr applies header code to the whole app, just before the closing
`</head>` tag. Page Settings has its own custom code that applies to one
page only.
