Reputation: 4962
I am trying to get specific goal stages values.. But I am only able to get With the API Expolorer
the startGoal and Goal Completed (Look at the picture I've attached to understand what I'm unable to get) With the
ga:goal1Start
I am able to get the number: 15,963(Look at the picture ive attached to understand)
and with the
ga:goal1Completions
I am able to get the number: 31(Look at the picture ive attached to understand)
How can I get the middle stages at the goals with the value 156? Is that even possible?
Upvotes: 5
Views: 3055
Reputation: 781
Those in-between numbers are not directly accessible through the API - neither the typical GA API nor the new Multi Channel Funnels API. The Multi Channel Funnels API deals with users visiting from multiple sources (or 'channels') before completing a goal, so the 'funnel' in its name actually refers to a different type of funnel than the one we are concerned with here -- a funnel of pageviews within one visit.
Although these intermediate numbers are not available through the API directly, we can use the API and some documentation-based knowledge to calculate them.
This Google Analytics documentation gives great information on how the Funnel Visualization report is calculated. I'll refer to sections of this document for clarity in calculating the numbers that you see at intermediate steps, because these numbers are not as simple as pageviews or visits to that step.
Looking at your funnel, I believe that you have selected the "Required 1st Step" option. I'll go through the explanation without this option first, and then explain how we can modify our process to take the required first step into consideration. I'll model your funnel as Step 1 > Step 2 > Step 3 > Completion, and I'll assume we want the number associated with Step 3. The process would be similar for Step 2.
We need to gather the following information from the API. To do so, you should create advanced segments to match these populations in the GA interface, and then use the segments in the API by numeric id:
Advanced Segment for Completion Visits without Step 3
Then add the results of 1 and 2 together.
You'll collect the same information as in Steps 1 and 2 above, but you'll extend the advanced segments to require that the visit includes Step 1 as well.
Advanced Segment for Step 3 Visits, Step 1 Required
Upvotes: 7
Reputation: 6882
You cannot get this information by accessing the normal Google Analytics API, but there is another API called "Multi Channel Funnel" API (more precisely: Conversion Paths - Dimensions & Metrics) that should let you extract the data you're looking for. I have only used the ga:
calls so far myself, but it is my understanding that this is exactly what the mcf:
calls are for.
Upvotes: -2