2

I have a website, and want to use the Google Analytics API to give me data that only includes visits with a specific goal completion (say goal 2). I'm trying to use the ga:goal(2)Completions metric in a segment to get this data like this:

segment=dynamic::ga:goal(2)Completions!=0

However, whenever I try this in the Query Explorer I'm told this is an invalid segment value. I don't see goal(n)Completions as a disallowed metric for use in segments in the documentation (https://developers.google.com/analytics/devguides/reporting/core/v3/reference#segment), so what's the problem here? Is there a different way to get this data segment?

4

2 に答える 2

1

それは

  • 「セグメント=」を使用しないでください
  • (n) 値は括弧なしである必要があります。

ids= ga:XXXXXXXX

開始日= 2012-01-01

終了日= 2012-01-31

metrics= ga:訪問数

セグメント = 動的::ga:goal2Completions!=0

テストしましたが、上記のサンプルは正常に動作するはずです。

于 2013-02-11T14:05:03.813 に答える