Can I use my Google Analytics Custom Segments in Chartio?

Data Sources

You can use Google Analytics custom segments in SQL Mode.

Open the Google Analytics Query Explorer and log in to your Google Analytics account. Select your segment from the dropdown list next to the segment input.

Once you select your segment from the dropdown, its ID will appear in the segment text input box. Copy the ID, including gaid:: at the beginning.

In your Google Analytics chart in Chartio, switch to SQL Mode at the top of the chart editor and add your GA segment after your metrics, with &segment= added in front of it.

Example:

Codeblock in SQL Mode


Related Data Sources Help Articles

See more