{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Segment 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":"segment-import-integration","__idx":0},"children":["Segment Import Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://Segment.io"},"children":["Segment.io"]},"は、データソースからデータを取得して宛先に転送するために使用されます。Treasure Dataは、データ取り込みのために",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://segment.com/"},"children":["Segment"]},"（旧",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://Segment.io"},"children":["Segment.io"]},"）とネイティブな接続性を持っています。接続はSegment UIでTreasure APIキーを使用して設定されます。データ取り込みは毎分行われるため、ほぼリアルタイムでデータをクエリできます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191010-222002.d10183c799691b002eea0c9cc7182c4a879823d527302faffa15901521a76edf.2d21cf31.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"segmentアカウントの作成","__idx":1},"children":["Segmentアカウントの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://segment.com/signup"},"children":["こちら"]},"からSegmentアカウントを設定するか、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://app.segment.com/login"},"children":["既存のSegmentアカウント"]},"にログインしてください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200814-193712.a685754826b27178f95f6e096809ae79c97f251340a788811b3ceeb448ebd479.2d21cf31.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ソースの設定","__idx":2},"children":["ソースの設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["どこかからTreasure Dataにデータをインポートするには、SourceとDestinationの両方を構成する必要があります。以下の例では、ソースはウェブサイトで、宛先はTreasure Dataです。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segmentにログインします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Workspaceに移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Catalog > Sourcesに移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["JavaScriptタイルを検索して選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200814-210935.1c708ce4da6297f3c3b356e7c45eab0b611af1d17ec5f23fc1ce49a9b1e7fe25.2d21cf31.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Add Sourceを選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200814-211005.2305cde37958760d38c002abbc8875768fb50ae8a019110cbfbd37a5ff15eb70.2d21cf31.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Sourceセットアップダイアログが開きます。名前を作成し、ラベルを追加し、タグをインストールするウェブサイトのURLを入力します。Add Sourceを選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200814-211610.55dab0a0410d1aaae53075a96facef343336422cc22b4a98856df147aa9fd6e3.2d21cf31.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Copy Snippetを選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200814-211628.4740c48f5684d959c281b87a766864943c37679f7928e7b4f6591102137ed31d.2d21cf31.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":8},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["コードスニペットをウェブサイトに追加します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200814-211703.a990a9dd527ec8847a66af0f79bc169c48678876433f170c045cbd4efb4b1a6f.2d21cf31.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"segmentデータをtreasure-dataにインポートする","__idx":3},"children":["SegmentデータをTreasure Dataにインポートする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ソースの設定後、Treasure Dataを宛先として設定します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Catalog"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Destinations"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure Dataを検索して選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200814-211802.1f6e90e53734ff1c7b8915b5f196785e74bfb044070ec97e35bd75f83579eb03.2d21cf31.png","alt":""},"children":[]}," ","3. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Configure Treasure Data"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200814-194042.268ba69e4d002464b746ae22ce8d5d7c694e86ba43b3328bf523f7991cd022c0.2d21cf31.png","alt":""},"children":[]}," ","4. 前のステップで作成したソース構成を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200814-211908.a87317a75f6c8976596cae0ed1db9794f07c09ba5c95444ca21a28816b846a7e.2d21cf31.png","alt":""},"children":[]}," ","5. Treasure Data Settingsダイアログが開きます。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/getting-your-api-keys"},"children":["Treasure コンソールからAPI write keyを取得"]},"してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200814-212014.6eee0cf27c27c0ff4d8e782fb08dcf3874843affc4fbeb5d61243c3e8b6b6da3.2d21cf31.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["API Write Keyを貼り付けて、データをインポートするデータベースの名前を入力します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200814-212104.27a77d37a5286ffc9887d522cdf44dbec7f517f9f63e06f4c4690f86f501a31f.2d21cf31.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/image-20200814-212141.ae8a23049a403f93b8c21515571229c6a54399afa7d6599c257ff61aad6ffb8e.2d21cf31.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"sourceとdestinationの確認","__idx":4},"children":["SourceとDestinationの確認"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ウェブサイトにアクセスしてトラッキングコードをトリガーします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200814-212712.df496afe6195a9d9b4b2ef828992d9e44e99d4d03d96c3ae986f7a4958199399.2d21cf31.png","alt":""},"children":[]}," ","2. SegmentのWorkspaceに移動し、Destinations > Event Deliveryに移動します。"," ","3. トラッキングタグがSegmentにイベントを送信していることを確認します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200814-212750.e69e7b7fe6b3fe55db01ff3105edbd6bc78b46d9b5b06009def2a47bc0f1e615.2d21cf31.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Workbench > Databasesに移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["宛先データベースを検索して選択します。データはそのデータベースの",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["pages"]},"テーブルで確認できます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["オプションで、Jobsでインポートジョブを確認します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200814-212834.7ad18752d67945468b956565af6c451fb492ca79716b8396a2c1d073ef71223d.2d21cf31.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"イベントのクエリ","__idx":5},"children":["イベントのクエリ"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Queries"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["入ってくるイベントを追跡するクエリを作成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["イベントがTreasure Dataに記録されるまで数分かかる場合があります。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"参考資料","__idx":6},"children":["参考資料"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://blog.treasuredata.com/blog/2016/02/08/raw-sql-access-to-segment-com-data/"},"children":["Raw SQL Access to Segment.com Data in Real-time"]}]}]}]},"headings":[{"value":"Segment Import Integration","id":"segment-import-integration","depth":1},{"value":"Segmentアカウントの作成","id":"segmentアカウントの作成","depth":2},{"value":"ソースの設定","id":"ソースの設定","depth":2},{"value":"SegmentデータをTreasure Dataにインポートする","id":"segmentデータをtreasure-dataにインポートする","depth":2},{"value":"SourceとDestinationの確認","id":"sourceとdestinationの確認","depth":2},{"value":"イベントのクエリ","id":"イベントのクエリ","depth":2},{"value":"参考資料","id":"参考資料","depth":2}],"frontmatter":{"seo":{"title":"Segment Import Integration"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/segment-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}