# Capable Sites The switch lives in the Sites app's own Integrations settings; the measurement ID and licence live in this app. You need both apps. Published views are always recorded as anonymous. --- ## How Published sites carry a loader script that reports into the same GA4 property, tagged with the Confluence space key, page id, page type and version so published views join in-Confluence views. --- ## Where you do it | **Task** | **Where** | | ----------------------------------------------- | -------------------------------------------------------------------------- | | Put a report on a Confluence page | Page editor > insert macro > Google Analytics (Capable) | | Track a published Capable Site | That site's Settings > Integrations | | Add a cookie consent banner to a published site | Capable Sites > that site > Settings > Integrations > Cookie consent popup | --- ## Settings that affect this | **Setting** | **Where** | **What it does** | | ---------------------------------------- | -------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Create API secret (+ button) | Settings > Apps > Google Analytics > Enhanced tracking | Creates a new Measurement Protocol secret in your GA4 data stream, named "Google Analytics by Capable", and stores it immediately. | | 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. | | Capable analytics integration | Capable Sites > the site > Settings > Integrations | Turns on tracking of the published static site, tagged with the Confluence space, page id, type and version so published views join up with in-Confluence views. | --- ## Related [RefinedAnother connection.](https://help.gocapable.com/google-analytics/refined.html) [Scroll ViewportAnother connection.](https://help.gocapable.com/google-analytics/scroll-viewport.html) [IntegrationsEvery connection.](https://help.gocapable.com/google-analytics/integrations.html) --- _Better with company._