{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["tabs","tab"]},"type":"markdown"},"seo":{"title":"Google Analytics Data API インポートインテグレーション","description":"Google Analytics Data API を使用して、GA4 レポートデータにプログラムからアクセスする方法を解説。認証方法や設定手順を詳しく説明します。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"google-analytics-data-api-インポートインテグレーション","__idx":0},"children":["Google Analytics Data API インポートインテグレーション"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Analytics Data API を使用すると、Google Analytics 4（GA4）のレポートデータにプログラムからアクセスできます。Google Analytics 4 は、Web、iOS、または Android アプリの利用状況を把握するのに役立ちます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure Data の基礎知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Analytics 4（GA4）の基礎知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Analytics 4 アカウント"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"要件","__idx":2},"children":["要件"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Analytics 4 アカウントまたはサービスアカウント JSON キー"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"認証方法","__idx":3},"children":["認証方法"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"google-ユーザーアカウント-oauth","__idx":4},"children":["Google ユーザーアカウント: OAuth"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["OAuth の使用が最も一般的な方法です。この方法では、セットアップ手順が少なくて済みます。このセクションの残りの部分をスキップして、Treasure コンソール に直接移動できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"google-サービスアカウントjson-キー","__idx":5},"children":["Google サービスアカウント—JSON キー"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["実装によっては、JSON キーの使用が必要になる場合があります。この方法では、Google API コンソールからのセットアップ手順が必要です。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"json-キー認証用に-google-analytics-data-api-を設定する","__idx":6},"children":["JSON キー認証用に Google Analytics Data API を設定する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google API Console を開きます: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://console.developers.google.com/"},"children":["https://console.developers.google.com"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["API 経由でアクセスしたい Google アカウントにサインインします。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["NEW PROJECT"]}," を選択します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-11-15_6-37-19.1d9cdaebe8090e09b1da6073069882026705ec395ef6deb1b1ada7e3c067a1a0.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["プロジェクトに名前を付けます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-14-48.b277cc70b88e6cca1cf43c8b6277e2ad38c87f7861b31ff3f50724e5474a74a7.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Analytics Data API v1 を有効にします。プロジェクトの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["APIs & Services"]}," に移動し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ ENABLE APIS & SERVICES"]}," を選択します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen-shot-2022-10-19-at-20.32.20.38ea4a098a00052ae67fb6a76c218161d1e01a686362218ff4b172b2feb73e8b.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Library"]}," ページから、Google Analytics Data API を検索して入力し、Enter キーを押します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen-shot-2022-10-19-at-20.33.02.54f2917ef84f473ce46a858ceade8c8340fe1badd221d2faae972e007c3e32fc.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":8},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Analytics Data API を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen-shot-2022-10-19-at-20.33.12.e98c9679f15c3292b1d4fb542c7d63b53ece5f2ed725a6edb6474c00328fa516.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":9},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enable"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen-shot-2022-10-19-at-20.33.22.da6d836e8c60e71fdff08b380f107d0889f179cb9222aa269818983f11dc4ff0.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":10},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいサービスアカウントを作成するために、Service account にアクセスします。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["APIs & Services から、Credentials を選択し、次に Service account を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ステップ 1 のフィールドに入力して、サービスアカウントを作成します。2 つのオプションパラメータはスキップできます。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-10-20_0-38-14.1bc15d376a3e4cf569554405c7b5feb5ec195bebc8b363188cd09a2536db2820.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":13},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Actions"]}," タブを選択します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-51-41.4b8f0dc8cd93d274f022a59ed545e18352a68f9941d97ceaea954252837e48b7.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":15},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["keys"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-52-18.2b10ae21626168ccdc1c23da9c0396c3bb4946b8063e24e410a3a180b6f50534.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":16},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add key"]}," プルダウンから、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create new key"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-53-15.52025b8089dcd1c2c9134556c42fd3223bcc22df770a3fc678f0a48f57c01fb7.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":17},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ローカルマシンにダウンロードする JSON キータイプを選択し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-53-0.3f20e0e81ec0d84fd9780fd45a93c2155b2e55bada3a3c66778b6017b0413d38.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":18},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["秘密鍵がコンピュータに保存されたという通知が表示されます。ファイルは安全な場所に保管してください。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-55-24.36e587cb336613c205f95729aae7fa9c86927e847a118a8f28a09631885b87c9.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":19},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["秘密鍵情報を使用して、インテグレーションの設定ファイルを編集します。ファイルは次のようになります。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"type\": \"service_account\",\n  \"project_id\": \"central-stream-314923\",\n  \"private_key_id\": \"94d03bf7dd9c05bc122c695d1aa13f2a8a28f88e\",\n  \"private_key\": \"-----BEGIN PRIVATE KEY-----\\nMIIEvQIBADANBgkqhkiG9w**********************AoIBAQCNhAICLr/dozCQ\\nTW9ZNMNJ6RF+fVqhd0FUbw0VBIwy6BWu/LuaocJrzl2DHChAl0PNvGCDUAObBTRz\\nbUT/HOu47q**********7ENGK\\nOir9VChG+Qubq25bAtOq/yTVEPJgnj*******AGVjojVnK4f\\n2YtW6ti7xBPwFBF1RPY56yTDeVQVko+KK3x+LFS+lTj1+jBBjvedWHrpQQfRHqV/\\nVtXyKyDybQlnfAOucMHzMxjQVLN4f9D7JVxCe52Wp7RaALCIdkKDqN/ffkNMF9QT\\nCjffudeTAgMBAAECggEAFMQnS0yy6QI2cSZ7zXpZofHqmEYq04DdfFdjcw8cx6eY\\n7vm1Seas0gcRX9j06y2HTJx1CS/np4rm/H0vX8RNrvCPYXrOJzUG2DOnW9pwi9Hl\\nKb1Z0VErenzy/em78BI958fXIJ4vv5pjNUZ94njEBE4tbuWEJyTODMyuCfoXpye4\\nkCDY6DJFxDKUA7tZOTcK3t0YiVV0O2MwcUhJdr107kw4F1HXY/mlh87ki5z3tMy0\\nISBKjvau2aWf0SVLZHtlo88JZGUak7tkuxnWaXQN+dUo1rZWKj867pBT4KWXzAbJ\\nUVQ7pBrDFri90fNQ5XFsQdS//dO2pFEn+1Aum86Q0QKBgQDB4RHjBWdJ3eMyvWWi\\nipdCx4gC6G5Hqjt+icKv9yddyV/WvuMH82xDAHUJJBzaj9I45O5D+07O6TZO8CkZ\\n6Tqq92N3HEkHZWiUTo91C4qbO4ai5SXxpnWn5gsYc+JYPqNp1b+T1gZjA4Pj8l+t\\neJ7VDGxu0tjK17Vj13turImXCQKBgQC629KRpvq9FAIWuA8NAXBSeqNyzktPVdOZ\\n5GJvwCevVzIapvwZPoZTaJ6xehta1hrR859ZReZx/j7ntoOjAjGw1rS//T5N98Hf\\nt+JpCemAa5ApcoUBAXmlb80jIHysRBgMUTLcTKnZuFT3RwsD1xtXjRct0doIF8EC\\nd8RLE7FkuwKBgQCJSuGIuwXWqBtAjiBPxwawUm29aWzWsPTqeZF1XHbzEiwc/RX2\\nRmmu1L8MFxebqmb6xRr45xh6q2k64xSn9aIG+aLk8RHB/AzfoPYzs1WW8cM4zT5e\\nbjs5B01qJn3tcYX051l/zfq92Ppny/X2+Mi5I9ARdpvwoGoh5rDQwbu5SQKBgHx8\\naGtKsC75Pm7+TmCevcLlGzEoCHohNqiGw6GphYbF84ZYCwmSYxD8WQTp0YGRtCp9\\nQILME7uL40KhkE8v7gTe9WoWf8SXs5ykt/y8cshwYImMVtmVrwItWp/1S7nEX7UM\\n/3JOzLVUnZ5jwQ3c58VLJM8MyFGt6ZMIUUinJP5zAoGAICmOlDqPWR2RXPo+9SkN\\nok82AjvsjeUMDsiCkEVsAQMBZkYbND0047BAg7STqVjIaJg0zYFvQ5oow5zgu1lk\\n46nxtfQm3U58lILErGsmClxcOZR2nO7kvm0PJMUgENADGhP5pqE+8w+e4JC45Ojw\\nX7X+hhL/a7pu2Un9O/rXZVM=\\n-----END PRIVATE KEY-----\\n\",\n  \"client_email\": \"meg-td-service-account@central-stream-314923.iam.gserviceaccount.com\",\n  \"client_id\": \"117460147437348814027\",\n  \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n  \"token_uri\": \"https://oauth2.googleapis.com/token\",\n  \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n  \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/meg-td-service-account%40central-stream-314923.iam.gserviceaccount.com\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"google-analytics-4にサービスアカウントを追加する","__idx":7},"children":["Google Analytics 4にサービスアカウントを追加する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Analytics 4にサービスアカウントを追加するには、前のステップで取得したJSONキーファイルが必要です。Google Analytics Data API v1を介してアクセスするGA4プロパティにユーザーを追加するには、Analyst権限が必要です。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["テキストエディタで",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["json key"]},"ファイルを開き、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client_email"]},"フィールドを検索してサービスアカウントのメールアドレスを取得します。次のようなアドレスになります: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"client_email\": \"meg-td-service-account@central-stream-314923.iam.gserviceaccount.com\""]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Analytics ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://analytics.google.com/"},"children":["https://analytics.google.com"]},"にサインインします。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Admin"]},"を選択し、目的のアカウント/プロパティに移動します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-10-20_0-3-20.33484ce23dcec6c026ac92cd9cd418ea02036b0e6c8cbad52444a2b7181ea49b.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["AccountまたはPropertyペイン(アカウントレベルまたはプロパティレベルのどちらでユーザーを追加するかによって異なります)で、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Access Management"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Account permissionsリストから+を選択し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add users"]},"を選択します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-10-20_0-16-4.8a374944e07227e2f202b1f90373e6b7e235931f8bb479baa17e78b819012685.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["jsonキーから控えておいたメールアドレスを入力します。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Viewer"]},"ロール以上(Analyst、Editor、Administrator)を選択します。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add"]},"を選択します。これで、サービスアカウントがGoogle Analytics Data APIを介してGoogle Analytics 4を使用できるようになりました。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen-shot-2022-11-02-at-14.27.39.6c9e128cef8a77c7f83eec3565a691d638aa66dada2a979f815185fc44f24506.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"google-analyticsからproperty-idを取得する","__idx":8},"children":["Google AnalyticsからProperty IDを取得する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataにデータをインポートするには、Property IDが必要です。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Analytics ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://analytics.google.com/"},"children":["https://analytics.google.com/"]},"にサインインします"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Adminを選択し、目的のアカウント/プロパティに移動します"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-10-20_0-48-49.0da1b657da69c340e15b36018f5541dffb2162166b6456874c2bf776bcac1a51.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Property IDを取得またはコピーします。これはTreasure Data Import Dataの作成に必要です。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"google-analyticsからカスタムディメンションまたはカスタム指標名を取得する","__idx":9},"children":["Google Analyticsからカスタムディメンションまたはカスタム指標名を取得する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["カスタムディメンションやカスタム指標を作成して、データをカスタマイズすることができます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Analytics ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://analytics.google.com/"},"children":["https://analytics.google.com"]},"にサインインします。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Admin"]},"を選択し、目的のアカウントに移動して",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Configure"]},"を選択します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-11-15_6-32-24.3e578598d0c4edacd76cdb9e0c4fb82a00f499cc1a7c814943d4d7a3b1d4403b.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Custom definitions"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-11-15_6-33-25.e80a2313a0b9bba8a013035991f8071772e34a46a227fc88f472fee661687c92.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-10-20_15-12-42.b653a4c50ff3405790ec44ec0de2504f739cf31817468e4980fe3117b4d4ff61.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["カスタムディメンションまたは指標名は、次のように連結して取得できます: custom{Scope}:{dimension or metric name}"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例えば、前の画像では",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["カスタムディメンション名"]},"にcustomUser:test_cs_dimensionを使用し、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["カスタム指標名"]},"にcustomEvent:test_cs_metricを使用しています。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソールからdata-connectorを作成する","__idx":10},"children":["Treasure コンソールからData Connectorを作成する"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しい認証を作成する","__idx":11},"children":["新しい認証を作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataでは、クエリを実行する前にデータ接続を作成して構成する必要があります。データ接続の一部として、統合にアクセスするための認証情報を提供します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure コンソール"]},"を開きます。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub"]}," >  ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Catalog"]},"に移動します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Analytics Data APIを検索して選択します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-10-20_15-20-38.547a5488ddc0fbe9bbdd998dc3827d25a113e04f27a2b5a7f7b7b81678c65783.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Authentication"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次のいずれかの認証方法を選択します:"]}]}]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"JSON Key","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["JSON key情報を入力します。"," ","サービスアカウントのprivate keyを含めるようにしてください。JSON key情報全体が中括弧{…}で囲まれていることを確認してください。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Cloud PlatformからダウンロードしたJSONファイルをお好みのテキストエディタで開きます。例:"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-6-3_9-45-59.7ade25ea5d865bb97e721985bd653ee35d1628a5632c2a834438e3cdd3b55642.759549ad.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["json keyをテキストボックスにコピーして貼り付けます。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"を選択します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-10-20_15-25-16.75cd110ca4e91a7adad1ed51ae931eef957491f3c0f865f3d89ce522ddf925b9.759549ad.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証方法を選択したら、接続の名前を入力します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]}]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"OAuth","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tab 2のコンテンツ"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-10-20_15-22-20.05db5f25bfd03f5b4c75d28fab7ae8333716493b54f177e618c4dd1df31dcff2.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["OAuth接続を知っている場合は入力します。そうでない場合は、新しいアカウントに接続することを選択できます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["新しいアカウントへの接続を選択した場合、リンクするアカウントを選択し、Treasure Dataによるそのアカウントへのアクセスを許可することに同意する一連の画面が表示されます。"," ","その後、Treasure コンソールのAuthenticationsに戻ります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Google Analytics Data API"]},"を検索して選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-10-20_15-20-38.547a5488ddc0fbe9bbdd998dc3827d25a113e04f27a2b5a7f7b7b81678c65783.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証接続フィールドに表示するアカウントを選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証方法を選択したら、接続の名前を入力します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]}," を選択します。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ソースの作成","__idx":12},"children":["ソースの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証接続を作成すると、自動的に Authentications に移動します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Analytics 4 からディメンション、メトリクス、またはカスタムディメンション、カスタムメトリクスの情報を入力する必要があります。ディメンションとメトリクスのリストについては、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema"},"children":["https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema"]}," を参照してください。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["作成した接続を検索します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Source"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Data Transfer フィールドに ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Source"]}," の名前を入力します。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Source Table ダイアログが開きます。ディメンションまたはカスタムディメンション、およびメトリクスまたはカスタムメトリクスの情報を提供する必要があります。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen-shot-2022-11-02-at-14.36.21.6b55b3b30720d37ed1fba62579c67f393a0755b6591c5943177dd707f802aabe.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen-shot-2022-11-02-at-14.34.52.dc5b47fb5d00a4745b17c2631283363880c4b31dfb6472e95ad6608fea91a487.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["以下のパラメータを編集します："]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameters"},"children":["Parameters"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Property ID"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["GA4 プロパティ ID。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Google Analytics からプロパティ ID を取得する"]}," セクションを参照してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Report Mode"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Basic または Advanced レポート。Advanced レポートを作成する場合は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.google.com/analytics/devguides/reporting/data/v1/advanced"},"children":["https://developers.google.com/analytics/devguides/reporting/data/v1/advanced"]}," を参照してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Dimensions"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ディメンションまたはカスタムディメンション名。ディメンションのリストについては ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema"},"children":["https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema"]}," を参照し、カスタムディメンションのリストを取得するには ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Google Analytics からカスタムディメンションまたはカスタムメトリクス名を取得する"]}," を参照してください。例：   - audienceId - customUser:test_cs_dimension"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Metrics"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["メトリクスまたはカスタムメトリクス名。メトリクスのリストについては ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema"},"children":["https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema"]}," を参照し、カスタムメトリクスのリストを取得するには ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Google Analytics からカスタムディメンションまたはカスタムメトリクス名を取得する"]}," を参照してください。例：   - promotionViews - promotionClicks - customEvent:test_cs_metric"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Start Date"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["レポートデータのクエリを開始する日付。サポートされる形式：YYYY-MM-DD、today、yesterday、NdaysAgo。パラメータ値は大文字と小文字を区別します。例：   - 2022-03-12 - today - yesterday - 4daysAgo"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["End Date"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["レポートデータのクエリを終了する日付。サポートされる形式：YYYY-MM-DD、today、yesterday、NdaysAgo。パラメータ値は大文字と小文字を区別します。例：   - 2022-03-12 - today - yesterday - 4daysAgo"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Advanced Payload"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON 形式の Advanced レポート定義。詳細については ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.google.com/analytics/devguides/reporting/data/v1/advanced"},"children":["https://developers.google.com/analytics/devguides/reporting/data/v1/advanced"]}," を参照してください。例：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{\"metrics\":[{\"name\":\"cohortActiveUsers\"}],\"dimensions\":[{\"name\":\"cohort\"},{\"name\":\"cohortNthWeek\"},{\"name\":\"country\"}],\"cohortSpec\":{\"cohorts\":[{\"dimension\":\"firstSessionDate\",\"dateRange\":{\"startDate\":\"2022-10-04\",\"endDate\":\"2022-10-10\"}}]}}"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen-shot-2022-11-02-at-14.39.29.f813a578482cc4756d36f4b503a5a69676590d4e7c51b0a77fb7f07288607339.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen-shot-2022-11-02-at-14.40.35.df7e3a8613d9b86214c6675da7a542ecd5cbcb51bc1d24b2261257b66eb36dac.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-10-20_16-3-50.4ba82660399f46382dacbc82bcf5ae2d3976d39575410ed6ceb60a5b8d75ee0b.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"データプレビュー","__idx":13},"children":["データプレビュー"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データプレビューはオプションであり、必要に応じてダイアログの次のページに進むために ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," をクリックしても問題ありません。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インポートを実行する前にデータのプレビューを表示するには、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Generate Preview"]}," を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データプレビューに表示されるデータは、ソースから近似されたものです。実際にインポートされるデータではありません。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データがおおよそ期待通りに見えることを確認します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/snippet-data-preview-2024-02-09.27dc5fd8772fca4f7f44ab28c00476ae1894744fe1e75d06932628929cc7bff1.4e139be3.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"データ配置","__idx":14},"children":["データ配置"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データ配置では、データを配置するターゲットのデータベースとテーブルを選択し、インポートを実行する頻度を指定します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。"," ","Storage で、インポートしたデータを配置する新しいデータベースを作成するか既存のデータベースを選択し、新しいテーブルを作成するか既存のテーブルを選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/dataplacement.20cdd6c14bacea9f716bed4b7443652bd67752f2de981c664364d0236b8eaa79.7705d4c2.png","alt":""},"children":[]}," ","2. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Database"]}," を選択 > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select an existing"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create New Database"]}," を選択します。"," ","3. オプションでデータベース名を入力します。"," ","4. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Table"]}," を選択 > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select an existing"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create New Table"]}," を選択します。"," ","5. オプションでテーブル名を入力します。"," ","6. データをインポートする方法を選択します。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Append"]},"（デフォルト）- データインポート結果がテーブルに追加されます。"," ","テーブルが存在しない場合は、作成されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Always Replace"]}," - 既存のテーブルのコンテンツ全体をクエリの結果出力で置き換えます。テーブルが存在しない場合は、新しいテーブルが作成されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Replace on New Data"]}," - 新しいデータがある場合にのみ、既存のテーブルのコンテンツ全体を結果出力で置き換えます。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timestamp-based Partition Key"]}," カラムを選択します。"," ","デフォルトキー以外のパーティションキーシードを設定したい場合は、long または timestamp カラムをパーティショニング時間として指定できます。デフォルトのタイムカラムとして、add_time フィルターを使用した upload_time が使用されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データストレージの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timezone"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," で、このクエリを実行するタイミングと頻度を選択できます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"run-once","__idx":15},"children":["Run once"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Off"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scheduling Timezone"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run Now"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"repeat-regularly","__idx":16},"children":["Repeat Regularly"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["On"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]},". The UI provides these four options: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@hourly"]},", ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@daily"]}," and ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@monthly"]}," or custom ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["cron"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You can also select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Delay Transfer"]}," and add a delay of execution time."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scheduling Timezone"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run Now"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["After your transfer has run, you can see the results of your transfer in ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Databases."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ワークフローを使用したインポート","__idx":17},"children":["ワークフローを使用したインポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["SOURCE を既に作成している場合、ワークフローの td_load>: オペレーターを使用して Google Analytics 4 からデータをインポートできます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソール で、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Sources"]}," に移動します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-10-20_20-21-58.cd1a737fe30c468f5a6a2439f109c652c482420d9548beb6cd43af604dd1e68d.759549ad.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["コネクターを選択し、その他メニュー（…）を選択します。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Copy Unique ID"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td_load> オペレーターを使用してワークフロータスクを定義します"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+load:\n   td_load>: unique_id_of_your_source\n   database: your_database\n   table: your_table\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ワークフローを実行します。"]}]}]},"headings":[{"value":"Google Analytics Data API インポートインテグレーション","id":"google-analytics-data-api-インポートインテグレーション","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"要件","id":"要件","depth":2},{"value":"認証方法","id":"認証方法","depth":2},{"value":"Google ユーザーアカウント: OAuth","id":"google-ユーザーアカウント-oauth","depth":3},{"value":"Google サービスアカウント—JSON キー","id":"google-サービスアカウントjson-キー","depth":3},{"value":"JSON キー認証用に Google Analytics Data API を設定する","id":"json-キー認証用に-google-analytics-data-api-を設定する","depth":4},{"value":"Google Analytics 4にサービスアカウントを追加する","id":"google-analytics-4にサービスアカウントを追加する","depth":4},{"value":"Google AnalyticsからProperty IDを取得する","id":"google-analyticsからproperty-idを取得する","depth":3},{"value":"Google Analyticsからカスタムディメンションまたはカスタム指標名を取得する","id":"google-analyticsからカスタムディメンションまたはカスタム指標名を取得する","depth":3},{"value":"Treasure コンソールからData Connectorを作成する","id":"treasure-コンソールからdata-connectorを作成する","depth":2},{"value":"新しい認証を作成する","id":"新しい認証を作成する","depth":3},{"value":"ソースの作成","id":"ソースの作成","depth":3},{"value":"データプレビュー","id":"データプレビュー","depth":4},{"value":"データ配置","id":"データ配置","depth":4},{"value":"Run once","id":"run-once","depth":4},{"value":"Repeat Regularly","id":"repeat-regularly","depth":4},{"value":"ワークフローを使用したインポート","id":"ワークフローを使用したインポート","depth":2}],"frontmatter":{"seo":{"title":"Google Analytics Data API インポートインテグレーション","description":"Google Analytics Data API を使用して、GA4 レポートデータにプログラムからアクセスする方法を解説。認証方法や設定手順を詳しく説明します。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/google-analytics-data-api-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}