AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

1.9K members online now
1.9K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
Guide Me

GA API v4 Goal completion location - segmentation

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭



In Google analytics going "Conversions -> Goals -> Goal Urls" we can see the list of "Goal Completion Locations" with their completions and values. We can choose Segments and it will show the info shown in the image.




Now, I need to get the same data by GA API v4 - so I need the goal completion locations with their completions and values but segmented by mobile, paid and organic traffic as in the image.


Right now I am using "ga:goalCompletionLocation" dimension to get list of goals, but it is not allowed in segments.



So, how can I get the same data as shown in the image through API - namely, the goal completion locations' with their completions and values - segmented by paid, organic and mobile traffic.