{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Integrations","type":"markdown"},"seo":{"title":"Mode Analytics Export 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":"mode-analytics-export-integration","__idx":0},"children":["Mode Analytics Export Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can run queries in Mode Analytics and send reports generated from the queries to Treasure Data."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://modeanalytics.com/"},"children":["Mode Analytics"]}," account"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Basic knowledge of Treasure Data"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Requires access to the new Presto-specific JDBC/ODBC API, currently in Private Beta. Contact your account representative if you’d like access to this new feature."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"retrieve-treasure-api-key","__idx":2},"children":["Retrieve Treasure API Key"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Retrieve the Treasure API key from the TD ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://console.treasuredata.com/app/users/current"},"children":["Console’s profile page"]},". The key must be the API key type ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["master"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"connect-a-database","__idx":3},"children":["Connect a Database"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Connect to Treasure Data from Mode. Click your profile icon button on the menu, and click ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Connect a Database"]}," menu."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191016-202308.bcc498775fd89035f88f52ae03d9206b10ec7ecfd927ad7a4d6f128e2fd467a0.934a2433.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Then, select Database in the Cloud tab."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191016-202525.a687aabb216381d075877be60c1d3f3afc20e782cf88e2b0f4f634330c8fb2bf.934a2433.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You’ll find Treasure Data Presto in the database list. Click Treasure Data Presto."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191016-202505.d839d47fe26ca06aae0f3345aba4344caa4c8d4b3d7f622125b8cf1ed62f61f1.934a2433.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"set-api-key","__idx":4},"children":["Set API key"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["After you retrieve the credential, enter the credential in the API Key field."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191016-202247.932737673b76039d4dda73fe804b91f99b53881598214eff7e9ee91f75936d47.934a2433.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"create-reports","__idx":5},"children":["Create Reports"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Now it’s time to create reports! In the editor, select the database connection you’ve created. Then, execute the SQL queries, and create reports from the queries."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191016-202237.0455a68b1de790ef9633a9c7a15839f1739fe18f2e2b14f7a3edf5657e988e9a.934a2433.png","alt":""},"children":[]}]}]},"headings":[{"value":"Mode Analytics Export Integration","id":"mode-analytics-export-integration","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Retrieve Treasure API Key","id":"retrieve-treasure-api-key","depth":2},{"value":"Connect a Database","id":"connect-a-database","depth":2},{"value":"Set API key","id":"set-api-key","depth":2},{"value":"Create Reports","id":"create-reports","depth":2}],"frontmatter":{"seo":{"title":"Mode Analytics Export Integration"}},"lastModified":"2026-06-01T09:09:59.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/int/mode-analytics-export-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}