# Track Confluence searches, comments and edits in Google Analytics To track Confluence searches, comments, page creates and edits, and reactions in Google Analytics, add a Measurement Protocol API secret. On the **Google Analytics configuration** page, under **Enhanced tracking**, select an existing secret or select the **+** button to create one. It saves at once, and the extra events start flowing. --- ## Before you start * You are a Confluence administrator. * Google Analytics is already added, with a measurement ID saved. See [Add Google Analytics to Confluence](https://help.gocapable.com/google-analytics/add-google-analytics-to-confluence.html). * Google is connected and a **Data stream** is selected, so the app can list or create secrets on that stream. Without a connection you can still paste a secret by hand. --- ## Steps 1. Open Confluence **Settings** and select **Google Analytics**. 2. Go to **Enhanced tracking** and find **Measurement Protocol API secret**. 3. Pick an existing secret from the list, or select the **+** button (**Create API secret**) to make a new one. 4. If Google asks for it, read the terms under **Google Analytics needs your acknowledgement** and select **I acknowledge**. 5. Wait for **Measurement Protocol API secret created and saved.** or **API secret applied and saved.** 📝 Google asks for the acknowledgement only the first time a property gets a Measurement Protocol secret. Accepting it here records it against your property, exactly as accepting it in Google Analytics would. To paste a secret you already have, use **Enter a secret manually instead** and then **Save configuration**. --- ## What happens next The **Feature status** panel shows **Search queries**, **Comments added**, **Page created / updated** and **Reactions & likes** as on. These events are sent from Capable's servers, so they arrive even when a browser blocks Google's script. Sync the [custom dimensions](https://help.gocapable.com/google-analytics/sync-google-analytics-custom-dimensions-for-confluence.html) next so reports can group the events by space and page. --- ## If it does not work * The list shows **No secrets yet**: use the **+** button to create one. * **Select a data stream first.**: pick a stream under **View tracking**, then try again. * The acknowledgement fails: accept it in Google Analytics instead, from the link in the dialog, then come back and create the secret. --- ## Related ### [Enhanced tracking (server side)](https://help.gocapable.com/google-analytics/enhanced-tracking-server-side.html) How the server-side events work. ### [Measurement Protocol secret management](https://help.gocapable.com/google-analytics/measurement-protocol-secret-management.html) Creating, choosing and rotating secrets. ### [Google Analytics settings](https://help.gocapable.com/google-analytics/google-analytics-settings.html) Every setting on the configuration page. ### [Sync Google Analytics custom dimensions for Confluence](https://help.gocapable.com/google-analytics/sync-google-analytics-custom-dimensions-for-confluence.html) Unlock the extra filters. --- _More than page views, from one secret._