Sub topic 14
Sharing and exporting your exploration
This chapter assumes you can already build a Free-form exploration with a Variables panel and Tab Settings, and that you know what segments and filters do. You need at least Viewer access to a GA4 property. Editing, sharing and exporting each need a different level of access, so you may see some controls greyed out.
The working model: private, shared copy, static export
A Free-form exploration is private to its creator by default. Nobody else in the property sees it, and that includes administrators. You have two ways to get the result to other people:
- Share the exploration. This gives colleagues a read-only copy of the configuration. They run it against live data.
- Export the data. This produces a file or a Google Sheet holding the numbers as they were at that moment.
Sharing hands over the question. Exporting hands over one answer. They solve different problems, and mixing them up causes most of the errors listed later in this chapter.
Sharing an exploration
Open the exploration and use the Share control in the top-right area of the exploration. Sharing makes the exploration appear in the explorations list of other users who have access to the property.
Three behaviors matter:
- The shared version is read-only. Recipients can view the tabs and settings, but they cannot change your original. To experiment, they duplicate it, and the duplicate is private to them.
- The shared version does not follow your later edits. If you change a segment or add a row dimension after sharing, recipients still see the earlier configuration until you share again. Treat sharing as publishing a version.
- Recipients see data through their own permissions. Sharing does not pass your data access to anyone. If a viewer's role has data restrictions, such as hidden cost or revenue metrics, those fields are blocked for them even though the configuration includes them. Two people can open the same shared exploration and see different cells.
You can also copy the exploration's link. The link only works for people who already have access to the property. It does not grant access to outsiders.
Housekeeping and limits
Explorations count against limits for each user and each property. The exact numbers have changed over time, so check the current Analytics Help page before you plan a large library. When you hit a limit, delete old drafts. Name explorations so that a colleague can find them in a long list, for example Channel x device - Q3 review. Names like Free-form 7 do not help.
Exporting data
The export control is near the top right of the exploration, next to Share. A Free-form export offers these formats:
| Format | Best for | Notes |
|---|---|---|
| Google Sheets | Quick sharing and spreadsheet formulas | Creates a new sheet each time. It does not update later. |
| CSV | Loading into pandas, R or a database | Plain comma-separated text. |
| TSV | Pasting into tools that break on commas | Tab-separated text. |
| Static screenshots for a slide or email | Reflects what the tab shows, including the visualization. |
What an export contains
An export covers the active tab only. If your exploration has three tabs, export three times. The file reflects the tab's current settings: the date range, segment comparisons, filters, and the number of rows that Tab Settings shows. If your table displays the first 10 rows, you get those rows, not the whole dataset behind them. Before you export, raise Show rows if you need more, and confirm the row count in the file afterwards.
The export carries the same limits as the screen:
- Data thresholds. Rows withheld on screen are also missing from the file.
- Sampling. If the exploration shows the sampling indicator, the exported numbers are the sampled estimates.
- Freshness. Recent days may still change after you export. The file does not update when processing finishes.
Check the data-quality icon near the exploration title before you export. If it shows the data is sampled, either narrow the date range and re-run, or note the sampling in whatever you send out.
Loading a CSV export in Python
CSV exports from GA4 start with several comment lines, each beginning with #. They describe the property, date range and exploration name. Tell pandas to skip them. The example below assumes a simple table with one row dimension and numeric value columns, saved as exploration.csv.
import pandas as pd
df = pd.read_csv("exploration.csv", comment="#")
# Drop a grand-total row if the export includes one.
first_column = df.columns[0]
df = df[df[first_column].astype(str).str.lower() != "grand total"]
print(df.head())
print(df.dtypes)If you pivoted the table so that a dimension sits in columns, the export has more than one header row and this simple load will mislabel it. Either unpivot in Tab Settings before exporting, or read with header=[0, 1] and inspect the result.
Choosing between share, export and the API
Use sharing when the audience should be able to inspect segments and settings. It also keeps the numbers current, because the exploration queries the property when it opens.
Use an export when the audience works in another tool, or when you need a frozen record. An example is the numbers you reported in a quarterly review. The file will not change if the data later reprocesses.
Use the Data API or BigQuery when someone must repeat the request on a schedule or feed a dashboard. Chapter 16 showed how a Free-form table maps to a runReport body. Manual exports are slow and error-prone when you repeat them weekly.
Common errors and how to avoid them
- "My colleague sees different numbers." Check their access first. Data restrictions and different segment definitions are the usual cause, and a stale shared version is next. Re-share after edits and compare the date ranges.
- "The shared link opens an error page." The recipient probably has no access to the property, or the exploration was deleted or unshared. A link does not grant access.
- "My export is missing rows." Check Show rows and Start row in Tab Settings. Then check for a filter or segment applied to the tab. Finally, consider data thresholds.
- "The Sheet never updates." An exported Sheet is a snapshot. For a live connection, rebuild the query in a tool that queries GA4 directly.
- "I exported the wrong tab." The export follows the active tab at the moment you click. Check the tab name before you export.
- "The CSV won't parse." Comment lines at the top are the cause. Use
comment="#"or delete those lines first.
A short checklist before you send anything
- Confirm the date range and that the end date is complete. If it includes today, the last day is partial.
- Check the data-quality icon for sampling and note it if present.
- Check Show rows, filters and segment comparisons on the tab.
- Name the exploration and tab clearly.
- Pick share, export or API using the diagram above.
- After sharing, open the exploration list as a recipient would, or ask one colleague to confirm they can see it.
Exercise
You shared an exploration with a colleague on Monday. On Wednesday you add a new segment comparison to your original. Your colleague says they cannot see the segment. What happened, and what do you do?
Show answer
Sharing publishes a read-only copy of the configuration at the moment you shared it. Later edits to your original do not reach that copy. Share the exploration again so that your colleague receives the updated version.
Exercise
You export a Free-form tab to CSV, and the file has only 10 data rows, although the property has far more channel and device combinations. Name two settings or limits you should check.
Show answer
Check Show rows (and Start row) in Tab Settings, because the export reflects the rows the tab displays. Then check filters and segments on the tab, and whether data thresholds withheld some rows. Raise Show rows, remove filters you don't need, and export again.
Exercise
A finance analyst needs the same channel-by-device table every Monday inside a spreadsheet, refreshed automatically. Should you share the exploration, export to Sheets each week, or use another approach?
Show answer
Use another approach. A shared exploration does not push data into a spreadsheet, and an exported Sheet is a static snapshot, so weekly exports mean repeated manual work. Rebuild the table as a GA4 Data API runReport request, or use a BigQuery export, and run it on a schedule.