WordPress
There are two ways to add the snippet to WordPress. The plugin approach is easier and survives theme updates.
Plugin (recommended)
Install a header-scripts plugin. WPCode (free) and “Insert Headers and Footers” are both popular choices. Then:
Install the plugin
In your WordPress admin, go to Plugins → Add New, search for “WPCode”, install it, and activate it.
Open the header code box
Go to Code Snippets → Header & Footer (WPCode) or Settings → Insert Headers and Footers, depending on which plugin you installed.
Paste the snippet
Paste the snippet into the Header box:
<script defer src="https://api.snowanalytics.app/sa.js" data-site="YOUR_SITE_ID"></script>Save
Click Save. The snippet is now added to every page on your site.
Verify
Visit your site in a browser, then check the Live view in the Snow dashboard. See Troubleshooting if nothing appears.