<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gregminster</author_name>
  <author_url>https://blog.hatena.ne.jp/gregminster/</author_url>
  <blog_title>約束の地</blog_title>
  <blog_url>https://obel.hatenablog.jp/</blog_url>
  <categories>
    <anon>Web -&gt; サービス -&gt; Google Analytics</anon>
  </categories>
  <description>CohortSpec の「フィルター」とは GUI の「探索」画面でいう、以下の「内訳」の部分です。この「内訳」によるデータ取得を API で実現するためにはフィルター機能を使います。 公式ドキュメント 具体的な例とともに公式ドキュメントにも記載があります。「週次コホートと他の API 機能とのコホートの使用」の項目です。 重要な点 重要なのは 2点 です。 1. &quot;dimensions&quot; の値の中にフィルターの &quot;fieldName&quot; の値 を含めること 上記の例では &quot;dimensions&quot; の値の中に &quot;country&quot; を含めています*1。 { &quot;dimensions&quot;: [ { &quot;n…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobel.hatenablog.jp%2Fentry%2F20230814%2F1691956800&quot; title=&quot;Google Analytics Data API の CohortSpec にてフィルターをかける方法と GAS でのサンプル - 約束の地&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://i.gyazo.com/46828f72ac8aa58bda7e0479766e62a2.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-08-14 05:00:00</published>
  <title>Google Analytics Data API の CohortSpec にてフィルターをかける方法と GAS でのサンプル</title>
  <type>rich</type>
  <url>https://obel.hatenablog.jp/entry/20230814/1691956800</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
