# Google Analytics The **Google Analytics** macro embeds a live analytics view straight onto a Confluence page. Choose **Overview** (site or space traffic over time), **Current page** (traffic for the page the macro sits on), **Content** (top pages table) or **Spaces** (traffic by space). Insert it with **/Google Analytics**. --- ## Settings | **Setting** | **Values** | **What it changes** | | | | --------------- | -------------------------------------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | | **View** | Overview \| Current page | Content | Spaces (default Overview) | Which view the macro shows. **Current page** reports on the page the macro is placed on, taking the page from where it sits rather than from a setting. | | **Date range** | Last 7 days \| Last 30 days | Last 90 days (default Last 30 days) | How far back the macro reports, ending today. | | | **Granularity** | Day \| Week | Month (default Day) | How the chart is bucketed. Only shown for **Overview** and **Current page**. | | | **Metric** | Views \| Sessions | Users (default Views) | Which single metric the chart plots. Only shown for **Overview** and **Current page**. The full reports page can overlay all three; the macro plots one line. | | | **Space** | Any space, or **Whole site** (default) | Limits the report to one space. Only shown for **Overview** and **Content**. | | | --- ## Who sees the figures The macro follows **Who can view reports** in the app settings. Readers outside that audience see **You do not have access to analytics for this site.** instead of the figures, and if an admin has turned reports off, everyone sees **Google Analytics reports are turned off for this site.** Figures are fetched from Google and kept for up to an hour. --- ## Messages the macro can show | **Message** | **What happened** | | ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------- | | **No page context** | **Current page** is in use somewhere that is not a page or blog post. | | **Connect Google to load this view's report data.** | The site's Google connection is missing or expired. A Confluence admin reconnects it in the settings. | | **Google Analytics is not set up yet.** | No property has been chosen. Contact your Confluence admin. | | **You do not have access to analytics for this site.** | You are not in the audience that can view reports. | --- ## Related ### [Macros](https://help.gocapable.com/google-analytics/macros.html) Every macro in this capability. ### [Add a Google Analytics report to a Confluence page](https://help.gocapable.com/google-analytics/add-a-google-analytics-report-to-a-confluence-page.html) Step by step. ### [Choose who can view Google Analytics reports in Confluence](https://help.gocapable.com/google-analytics/choose-who-can-view-google-analytics-reports-in-confluence.html) Who sees the figures. --- _One macro, documented properly._