简体   繁体   中英

Getting Specific Google Analytics Goal Funnel Stage

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?

Api Explorer: https://developers.google.com/apis-explorer/#p/analytics/v3/analytics.data.ga.get?ids=ga%253A68044380&start-date=2013-02-20&end-date=2013-02-20&metrics=ga%253Agoal1Starts%252C+ga%253Agoal1Completions&_h=24& !

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.

Without Required First Step

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 :

  1. Number of visits to the URL associated with Step 3 (see documentation, "Unique Pageviews").
  2. Number of visits to the Completion URL who did not visit Step 3, as the funnel visualization report will backfill these visits (see documentation, "Backfilling Funnel Steps).

Advanced Segment for Completion Visits without Step 3 完成访问的高级细分,无步骤3

Then add the results of 1 and 2 together.

With Required First Step

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 第3步访问的高级细分,第1步必需

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM