# Scroll Viewport Same live lookup as Refined. Allow client.api.app in Scroll Viewport's content security policy. --- ## How Paste the JavaScript snippet from the Published site generators panel into Edit theme > Templates > Custom JavaScript. --- ## Where you do it | **Task** | **Where** | | --------------------------------------------------------- | -------------------------------------- | | Track pages published through Refined or Scroll Viewport/ | 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. | --- ## Related [Legacy Resolution Google Analytics (Connect)Another connection.](https://help.gocapable.com/google-analytics/legacy-resolution-google-analytics-connect.html) [Google Analytics 4Another connection.](https://help.gocapable.com/google-analytics/google-analytics-4.html) [IntegrationsEvery connection.](https://help.gocapable.com/google-analytics/integrations.html) --- _Better with company._