Search code examples
google-analyticsgoogle-reporting-api

Google Analytics Query Explorer - Custom Metric (alias)


Is it possible to have alias for custom defined metric in Google Analytics Query Explorer?

Currently I get table column name: Custom Metric 1 Value.


Solution

  • The Google Analytics Query explorer is mainly a development testing tool. It returns the information directly from the Google Analytics API, using the raw dimension and metric names.

    The correct name via the API for custom metrics is GA:metric1 - ga:metric20 or Custom Metric 1 - Custom Metric 20.

    You cant change that to make or make an alias.

    If you want to do something like that you would have to code it directly yourself using the Google Analytics reporting api