Last active
February 4, 2016 00:51
-
-
Save rakuishi/5010ee819260cdd32a15 to your computer and use it in GitHub Desktop.
Google Analytics: Custom dimension をフィルターに含める
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $result = $this->service->data_ga->get( | |
| 'ga:' . $viewId, | |
| @date('Y-m-d', strtotime('-3 day')), // 開始日 | |
| @date('Y-m-d', strtotime('-2 day')), // 終了日 | |
| 'ga:screenviews', | |
| array( | |
| 'dimensions' => 'ga:screenName,ga:dimension1', | |
| 'sort' => '-ga:screenviews', | |
| 'max-results' => '10', // 件数 | |
| 'filters' => 'ga:dimension1=@user', // `user` を含むカスタムディメンション 1 の値を検索 | |
| // == 一致, != 一致しない, =@ 含む, !@ 含まない, =~ 正規表現の一致, !~ 正規表現の不一致 | |
| ) | |
| ); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Google Analytics 上でカスタムディメンションを見る方法