# Refined The snippet looks up the measurement ID live, so you never need to re-paste it. Allow client.api.app in Refined's content security policy. --- ## How Paste the HTML snippet from the Published site generators panel into Refined Admin > Site > Configuration > Advanced Settings > Activate Custom HTML, at the end of BODY. --- ## Where you do it | **Task** | **Where** | | ------------------------------------------------------ | -------------------------------------- | | Track pages published through Refined or Scroll Viewpo | Published site generators panel > Copy | --- ## Settings that affect this | **Setting** | **Where** | **What it does** | | ---------------------------------------- | -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | Published site generators (Refined / Scr | Settings > Apps > Google Analytics > Published site generators | The paste-in loader for content published outside Confluence. Refined takes an HTML script tag; Scroll Viewport takes the JavaScript variant. | --- ## Worth knowing * New network access the app needs must be approved by your Confluence admin in Admin Hub, and the Refined and Scroll Viewport snippets need content security policy changes inside those products. --- ## Related [Scroll ViewportAnother connection.](https://help.gocapable.com/google-analytics/scroll-viewport.html) [Legacy Resolution Google Analytics (Connect)Another connection.](https://help.gocapable.com/google-analytics/legacy-resolution-google-analytics-connect.html) [IntegrationsEvery connection.](https://help.gocapable.com/google-analytics/integrations.html) --- _Better with company._