Add a data control to a report
The data control gives viewers a way to select the Google Analytics data they want to see in a report. This makes it easy for you to share reports based on Google Analytics with viewers who want to use that report with their own Analytics data. Using a data control eliminates the need to create separate reports and data sources for your various Google Analytics views.In this article:
Add a data control to your report
- Edit the report
- In the toolbar, click Data control
- In the canvas, draw a box where you want the control to appear
- To change the appearance of the data control, use the options in the STYLE properties panel.
How the data control works
A Google Analytics data source connects to a single Analytics reporting view. The charts and controls in a report using that data source get their data from that view. The data control displays a list of all the Analytics views available to anyone viewing the report and lets them select the one they want to use. All of the charts on the page that are based on a Google Analytics data source will use the data from the selected view.
Report viewers who use the data control only see the Google Analytics accounts, properties, and views to which they have access.
The data control doesn't give editors access to the viewer's Analytics data. As always, access to data is governed by your account authorization.
Example 1: Support cross-functional use of Analytics data
Suppose your organization tracks digital analytics for distinct Marketing and Sales websites, and a Support mobile app. You could build a single default report to be shared across your organization and include a data control in the report. Users in each department could use the data control to select the Analytics view that is relevant to them.
Example 2: Help Google Analytics users see their data in Data Studio
Even if someone doesn't know how to use Data Studio, any report that includes a data control can show them their own Google Analytics data. This makes it easy to create public reports that include Analytics charts, which the user can then adapt to their own data. When the user first comes to Data Studio, they are prompted to authorize access their Google Analytics account. They can then use the data control you've placed on the report to select one of their own Analytics views.
Bookmark a view
The data control stores the selected Analytics view in the URL, allowing you to save a selected Analytics view by bookmarking the current report. This makes it easy to return to a particular version of the report or share that version with others by sending them the bookmarked link.
Data control scope
By default, a data control affects all the charts on the current page. Just like filter controls and date range controls, you can limit the scope of a data control so that it affects only charts grouped with the data control.
You can use multiple groups of data controls and charts to display data from different Google Analytics views on the same page.
To have a data control affect the entire report, make it a report-level component. The data control then appears on every page.
Limits of the data control
- Currently, the data control can only be used with Google Analytics data.
- Report viewers must have access to the Google Analytics view in order to see that view's data in a report.