{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition","tabs","tab"]},"type":"markdown"},"seo":{"title":"Google Analytics Import Integration","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"google-analytics-import-integration","__idx":0},"children":["Google Analytics Import Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Analyticsは、Googleが提供するウェブ解析サービスで、Google Marketing内のプラットフォームとしてウェブサイトのトラフィックを追跡・レポートします。Google Analytics import integrationを使用すると、Google Analyticsレポートをインポートできます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["多くのインテグレーションのサンプルワークフローは、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/treasure-data/treasure-boxes"},"children":["Treasure Boxes on GitHub"]},"で利用できます。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この機能はUniversal Analytics(UA)のみを使用しており、2023年7月1日に廃止されました。詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://support.google.com/analytics/answer/11583528"},"children":["このページ"]},"をご覧ください。サービスを中断することなく継続するには、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/google-analytics-data-api-import-integration"},"children":["Google Analytics Data API Import Integration"]},"でGoogle Analytics 4 (GA4)の使用を検討してください。"]}]},{"$$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 Analysisの基本的な知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ディメンションとメトリクスが指定されたGoogle Analyticsアカウント"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"要件","__idx":2},"children":["要件"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Analyticsでレポートデータを取得するには、サービスアカウントに「Read & Analyze」以上のレベルの権限が必要です。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"partition-key-seedについて","__idx":3},"children":["Partition Key Seedについて"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["通常、TDは時間でデータをパーティション分割します。パーティション化時間として、longまたはtimestampカラムを選択します。デフォルトでは、Partition key seedはtimeカラムを使用し、具体的にはadd_timeフィルターを通じてupload_timeカラムを使用します。Google Analyticsでは、partition key seedはtime_seriesセクションで指定された「ga: date」または「date_hour」になります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"google-apiセットアップオプション","__idx":4},"children":["Google APIセットアップオプション"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データコネクタの作成の一環として、Google API Consoleを使用してTreasure Dataを登録します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure DataをGoogle Analyticsで認証する方法により、データコネクタがGoogle Analyticsからインポートするために必要な手順が異なります。"]},{"$$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":"認証方法"},"children":["認証方法"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Google User Account: OAuth"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OAuthの使用が最も一般的な方法です。この方法では、セットアップ手順が少なくて済みます。このセクションの残りをスキップして、Treasure コンソールに直接移動できます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Google Service Account—JSON"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSONの使用は、実装に必要な場合があります。この方法では、Google APIを使用したセットアップ手順が必要です。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"json認証用のgoogle-apiの設定","__idx":5},"children":["JSON認証用のGoogle APIの設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Analytics data connectorは、APIコネクタを使用して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 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 Analyticsアカウントにログインします。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["APIサービスにアクセスする権限を持つように、Google Analyticsアカウントにログインします。"]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Library"]},"に移動します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-6-44.668f6414bd74b6bd24c0276c5e0a5bb23409909087303ccb3c65b809bec65c47.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create project"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-8-21.74338e99bcc8367db2630085fe46cc25af9bafb3442ee69843e1e066a00e2729.5a48ad91.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":"img","attributes":{"src":"/assets/image2021-5-25_16-9-52.fe4e64a5029fa3216d53871203505da5c457f61c4b079a391a8e54f8a03b8e2d.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Project"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-10-24.f5ee7508b3d52954cc872ddb605716585aaa44d0f941fbdb5478e5875d25c03f.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"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.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":8},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいService Accountの作成"]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":9},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいアカウントを作成するためにService Accountにアクセスします。service accountは、APIがGoogle Analyticsアカウントにアクセスすることを許可します。service accountはプロジェクト内で作成され、Google APIサービスにアクセスするためにログインしたGoogleアカウントから作成されます。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["APIs & Services"]},"を選択します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-41-27.a559b5a2a6871572d74c6ed73bc6f6a456abb1f50b2e5330a9f43204d29db329.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":11},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Service Accounts"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Service Account"]},"を選択します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-42-58.24dff8ed9eb0a54b30cf23b9424c02cc876695cba2e78d68a2a64c9286d5461a.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-43-50.574957bca95fecfe7ef96ab009ca69316fe0535704e91959a9210d256efd8c34.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":13},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["フィールドを入力して、「treasure-data」という名前のservice accountを作成します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-48-2.adc86d9b60d5f2641860256b8d704ad5138ed21ee1a80a78f541beaa22498b25.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":14},"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":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Actionsメニューを選択します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-51-41.4b8f0dc8cd93d274f022a59ed545e18352a68f9941d97ceaea954252837e48b7.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":17},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manage keys"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-52-18.2b10ae21626168ccdc1c23da9c0396c3bb4946b8063e24e410a3a180b6f50534.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":18},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add key"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-53-15.52025b8089dcd1c2c9134556c42fd3223bcc22df770a3fc678f0a48f57c01fb7.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":19},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$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-0.3f20e0e81ec0d84fd9780fd45a93c2155b2e55bada3a3c66778b6017b0413d38.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":20},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["JSONファイルが使用しているマシンにダウンロードされます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_16-55-24.36e587cb336613c205f95729aae7fa9c86927e847a118a8f28a09631885b87c9.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証情報を含むファイルは安全な場所に保管してください。JSONファイルのprivate key情報をData Connector設定ファイルで使用します。"]},{"$$mdtype":"Tag","name":"p","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":"ol","attributes":{"start":21},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Service accountsに戻り、key IDを確認します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-25_17-23-43.fa72064a4351bbd3af78c578642033810d7dfd472810095a29b4106115f2a5c5.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":22},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["service accountを選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-6-2_16-15-41.44fd1d22c9a14c7e1993e0b93ad4d754f344178924725d3c53f40035a3d0a1d1.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":23},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Show Domain Wide Delegationを展開します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enable Google Workspace Domain-wide Delegation"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["product名として「Treasure Data」と入力します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-6-2_16-18-35.29171077d1a7f536edd7d32a30376afd3d59d6fb87c00e3f4d0ec6401e1e839e.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":26},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["作成したservice accountは、service account IDも作成します。このservice account IDには、API アクセス認証が付与されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"jsonのためのanalytics-apiの設定","__idx":6},"children":["JSONのためのAnalytics APIの設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これで、Google API内にprojectとaccount IDが作成されました。次に、このprojectで使用する特定のAPIを有効にします。このステップでは、Google Analyticsに関連する2つのAPIを登録します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"analytics-apiの検索と有効化","__idx":7},"children":["Analytics APIの検索と有効化"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Cloud Platformで、APIs & Services > Libraryに移動します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-6-2_16-27-4.a85148ba72ecd1882b2e4b23250b1b3fae235bae6146df650964c90befef763e.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["検索バーを使用して、次を検索します:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Analytics API Reporting"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-6-2_16-30-2.43acc8f2e0eedfc36c49922b1d685ab90dafcbbacb9dadfd3d6d41c159f10642.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Analytics Reporting APIを選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enable"]},"を選択します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-6-2_16-31-45.04492d87c2cf4f23fb9ce53fae88a80388c34bd256791cd4619d897f3777a547.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["APIを有効にすると、Dashboardメニューから、登録されたすべてのAPIのリストを確認でき、APIの監視が開始されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-6-2_16-40-49.a7cd868901f2f937287122d6be5c3c9e4b6fe38d6374521ec49c3b7b895ee204.5a48ad91.png","alt":""},"children":[]},"Google API内のproject内の2つのAPIが、データ送信のために有効になります。service account IDは、Google Analyticsデータへのアクセスが許可されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"jsonのためのgoogle-apiとservice-accountをgoogle-analyticsに関連付ける","__idx":8},"children":["JSONのためのGoogle APIとService AccountをGoogle Analyticsに関連付ける"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"jsonのためのgoogle-apiへのアクセスのためのservice-account-idに権限を追加","__idx":9},"children":["JSONのためのGoogle APIへのアクセスのためのService Account IDに権限を追加"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google APIで作成したservice accountに権限を追加します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Analyticsでレポートデータを取得するには、service accountに「Read & Analyze」以上のレベルの権限が必要です。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Googleアカウントで引き続きGoogle Analyticsにログインしていることを確認します。次のURLにアクセスします:      https://analytics.google.com/"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Adminを選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Account"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["User Management"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["service accountに「Read & Analyze」以上のレベルの権限を定義します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これで、service accountはGoogle Analytics APIを通じてGoogle Analyticsを使用するための適切なアクセス権を持つようになりました。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"google-analyticsからview-idを取得","__idx":10},"children":["Google AnalyticsからView IDを取得"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataへの認証を作成するには、view IDが必要です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["各データの一意のviewには、関連付けられたView IDがあります。アクセスしたいデータのView IDを知っている必要があります。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google AnalyticsのHomeページに移動します。例:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["analytics.google.com/"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-6-3_13-13-40.4e6cb13c0ddc85695cba1df1ea5295423cd9260ea1ccc4604828d54f936a68b3.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Adminを選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["View Settingsを選択します。例:"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-193003.2e78337fd91e767a5f6b2632780f997668a8df030b8bb7cce246dece45ee0852.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ページ上のView IDフィールドを見つけます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-193026.bcf3e36358d4fd72967031a243583756a24fb7938074c44759c7ce3d9153f948.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["View IDをキャプチャまたはコピーします。これは、Treasure Data認証の作成に必要です。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソールからのデータコネクターの作成","__idx":11},"children":["Treasure コンソールからのデータコネクターの作成"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しい接続の作成","__idx":12},"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を検索して選択します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-6-3_9-34-31.aecad98abe16bd81abc6adf96d90493c95cdcb34c7864036830971c3e5d31bf4.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Authentication"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-6-3_9-40-8.88aa7ff86852dc436deeaa582842fdf89d400b2afcd14949ebb78e6462339b66.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["以下の認証方法のいずれかを選択してください:"]}]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"JSON Key","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["View IDとJSON keyの情報を入力します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["サービスアカウントのprivate keyが含まれていることを確認してください。JSON key情報全体が中括弧{…}で囲まれていることを確認してください。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Cloud PlatformからダウンロードしたJSONファイルを、お好きなテキストエディタで探して開きます。例:"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-6-3_9-45-59.7ade25ea5d865bb97e721985bd653ee35d1628a5632c2a834438e3cdd3b55642.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["View ID"]},"を入力します。例: 179999562"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["接続の名前を入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"OAuth","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-6-4_11-11-8.27122d7fffdf497d6583f13ad1978d0bcc597b97f460b14c266a20505b289e2a.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["OAuth接続がわかっている場合は入力し、それ以外の場合は新しいアカウントを接続する選択を行うことができます。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいアカウントの接続を選択した場合、リンクするアカウントを選択し、Treasure Dataによるそのアカウントへのアクセスを許可することに同意する一連の画面が表示されます。"," ","その後、Treasure コンソールのAuthenticationsに戻ります。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Google Analytics"]},"を検索して選択します。",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-6-3_9-34-31.aecad98abe16bd81abc6adf96d90493c95cdcb34c7864036830971c3e5d31bf4.5a48ad91.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["OAuthを選択します。"," ","アカウントがAuthentication connectionフィールドに表示されるはずです。例:"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-6-28_14-11-16.29f0e754731eea6590d8c43d83451dd7844a975a5ce01fe7d6d9ee09da84bb0c.5a48ad91.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["View ID"]},"を入力します。例: 179999562"]}]},{"$$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":"treasure-dataへのデータ転送","__idx":13},"children":["Treasure Dataへのデータ転送"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証接続を作成すると、自動的にAuthenticationsに移動します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google AnalyticsからDimensionとMetricの情報を入力する必要があります。"]},{"$$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":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Source Tableダイアログが開きます。DimensionとMetricの情報を入力する必要があります。Google Analyticsに移動して情報を取得し、Treasure Data Transfer data from Google Analyticsダイアログに情報を入力します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-6-3_13-47-28.402443af93d83839910770caefd0dae1ba7f9bbedff26a3fb903f608c3aa7890.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","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":["Time Series"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Time Seriesフィールドでは、日付と時刻を追跡するか、日付のみを追跡するかを指定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Dimensions"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Dimensionsはデータカテゴリです。Dimension値（dimensionに含まれるデータ）は、カテゴリの名前、説明、またはその他の特性です。例:   - ga:pagePath - ga:referralPath"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Metrics"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Metricsはdimensionsに含まれるものを測定し、チャートの数値スケールとデータ系列を提供します。例:   - ga:pageviews - ga:sessions - ga:users"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Incremental"]},{"$$mdtype":"Tag","name":"td","attributes":{},"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":["Data Settingsページは必要に応じて変更することも、ページをスキップすることもできます。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-6-10_9-24-12.213554458bafff100344979ba180f585c8e5fbd300c1dbc54a25bda2176b7737.5a48ad91.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、Data Settingsページのパラメータを編集します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":8},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-preview","__idx":14},"children":["Data Preview"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インポートを実行する前に、Generate Preview を選択してデータの",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/integration-hub/batch/import/previewing-your-source-data"},"children":["プレビュー"]},"を表示できます。Data preview はオプションであり、選択した場合はダイアログの次のページに安全にスキップできます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Data Preview ページが開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データをプレビューする場合は、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Generate Preview"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データを確認します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-placement","__idx":15},"children":["Data Placement"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データの配置について、データを配置したいターゲット database と table を選択し、インポートを実行する頻度を指定します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Storage の下で、インポートされたデータを配置する新しい database を作成するか、既存の database を選択し、新しい table を作成するか、既存の table を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$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"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、database 名を入力します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$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"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、table 名を入力します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データをインポートする方法を選択します。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Append"]}," (デフォルト) - データインポートの結果は table に追加されます。"," ","table が存在しない場合は作成されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Always Replace"]}," - 既存の table の全体の内容をクエリの結果出力で置き換えます。table が存在しない場合は、新しい table が作成されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Replace on New Data"]}," - 新しいデータがある場合のみ、既存の table の全体の内容をクエリの結果出力で置き換えます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","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":"p","attributes":{},"children":["データストレージの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timezone"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," の下で、このクエリを実行するタイミングと頻度を選択できます。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"一度だけ実行","__idx":16},"children":["一度だけ実行"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Off"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scheduling Timezone"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run Now"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"定期的に繰り返す","__idx":17},"children":["定期的に繰り返す"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["On"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," を選択します。UI では、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@monthly"]},"、またはカスタム ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["cron"]}," の 4 つのオプションが提供されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Delay Transfer"]}," を選択して、実行時間の遅延を追加することもできます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scheduling Timezone"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run Now"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["転送が実行された後、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Databases"]}," で転送の結果を確認できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"オプションでworkflowを設定","__idx":18},"children":["オプションでWorkflowを設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure ワークフロー内で、ワークフローの一部としてこのデータコネクタの使用を指定できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tools/cli-and-sdks/api#workflow-commands"},"children":["Using Workflows to Export Data with the TD Toolbelt"]},"を参照してください。"]}]},"headings":[{"value":"Google Analytics Import Integration","id":"google-analytics-import-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"要件","id":"要件","depth":2},{"value":"Partition Key Seedについて","id":"partition-key-seedについて","depth":2},{"value":"Google APIセットアップオプション","id":"google-apiセットアップオプション","depth":2},{"value":"JSON認証用のGoogle APIの設定","id":"json認証用のgoogle-apiの設定","depth":2},{"value":"JSONのためのAnalytics APIの設定","id":"jsonのためのanalytics-apiの設定","depth":2},{"value":"Analytics APIの検索と有効化","id":"analytics-apiの検索と有効化","depth":3},{"value":"JSONのためのGoogle APIとService AccountをGoogle Analyticsに関連付ける","id":"jsonのためのgoogle-apiとservice-accountをgoogle-analyticsに関連付ける","depth":2},{"value":"JSONのためのGoogle APIへのアクセスのためのService Account IDに権限を追加","id":"jsonのためのgoogle-apiへのアクセスのためのservice-account-idに権限を追加","depth":3},{"value":"Google AnalyticsからView IDを取得","id":"google-analyticsからview-idを取得","depth":2},{"value":"Treasure コンソールからのデータコネクターの作成","id":"treasure-コンソールからのデータコネクターの作成","depth":2},{"value":"新しい接続の作成","id":"新しい接続の作成","depth":3},{"value":"Treasure Dataへのデータ転送","id":"treasure-dataへのデータ転送","depth":3},{"value":"Data Preview","id":"data-preview","depth":3},{"value":"Data Placement","id":"data-placement","depth":3},{"value":"一度だけ実行","id":"一度だけ実行","depth":4},{"value":"定期的に繰り返す","id":"定期的に繰り返す","depth":4},{"value":"オプションでWorkflowを設定","id":"オプションでworkflowを設定","depth":1}],"frontmatter":{"seo":{"title":"Google Analytics Import Integration"}},"lastModified":"2026-06-01T09:47:58.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/google-analytics-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}