Filter Goals by Goal ID

925 views
Skip to first unread message

wh...@gorogue.net

unread,
Jan 15, 2016, 1:52:07 PM1/15/16
to google-analytics-spreadsheet-add-on
I'm trying to run a Goal Completions report with a filter to only show certain goals. The Google Analytics API says there is a parameter called goalID. I tried to use this parameter in the Filter field like this... ga:goalID==7. I keep getting an error unknown dimension.

wh...@gorogue.net

unread,
Jan 15, 2016, 3:06:23 PM1/15/16
to google-analytics-spreadsheet-add-on
I have the answer to my own question. I thought I would post here in case anyone else was wanting to run reports for specific goals instead of all goals. In the Metrics field, you have to use the ga:goalXXCompletions metric. Then, you simply replace the XX with the goal ID like this - ga:goal7Completions. This will only show goal completions for goal ID 7. If you want to show 2 or more goals (but not all), you just add to this in the Metrics field like this... ga:goal7Completions,ga:goal6Completions. I was trying to Filter by goal ID, but it doesn't work that way. You have to set the goal ID in the Metrics field. I hope this helps someone else.

Here's a link to the post that helped me figure this out -
https://developers.google.com/analytics/devguides/reporting/core/dimsmets#view=detail&group=goal_conversions

Kumar Shivam Singh

unread,
Jun 7, 2021, 1:09:53 AM6/7/21
to google-analytics-spreadsheet-add-on
This was really helpful. Thank you!

Sam Singleton

unread,
Jul 6, 2023, 8:10:40 PM7/6/23
to google-analytics-spreadsheet-add-on
The answer i Was looking for, 7 years later, thank you my guy
Reply all
Reply to author
Forward
0 new messages