Treasure Data
This integration is currently in beta. Contact your MetaRouter support team to get started.
What Is Treasure Data?
Treasure Data is a customer data platform (CDP) that helps organizations collect, unify, and analyze customer data from multiple sources to create a comprehensive view of their customers. The platform enables businesses to make data-driven decisions by integrating and analyzing data in real time, providing insights for personalized marketing, sales, and customer experience strategies. With robust data integration capabilities, Treasure Data supports various data sources, including mobile apps, websites, CRM systems, and IoT devices. Additionally, it features advanced tools for segmentation, data privacy compliance, and customer journey mapping, making it a valuable asset for enterprises looking to optimize customer engagement.
What are the benefits of integrating MetaRouter with Treasure Data?
- Enhanced Data Privacy: Through configurable data transformations, including hashing and field-level controls, the integration helps manage sensitive information securely.
- Data Transformation and Enrichment: Customizable field mappings and transformations ensure that incoming data aligns with Treasure Data’s schema, improving data quality and consistency.
- High-Speed Data Processing: Enables swift data ingestion into Treasure Data, facilitating prompt access to customer insights and enhancing the responsiveness of analytics.
Capabilities and Considerations
- Multi-Source Data Collection: MetaRouter collects data from web and mobile applications, CRMs, and other systems, routing it to specified databases and tables in Treasure Data as per the
DATABASE_ID
andTABLE_ID
parameters in the ingestion API. With secure API key authentication and JSON-formatted payloads, it ensures compatibility with Treasure Data’s schema requirements. Data mapping includes attributes likemessageId
,userId
, andevent
, and flattens nested fields (context
,traits
) for standardized ingestion. - Low-Latency Ingestion: Treasure Data’s Data Ingestion API supports quick data transfer to Treasure Data, allowing for prompt access to customer information for real-time analysis. Automated routing through the playbook further reduces latency by eliminating manual steps in the data flow.
- Data Unification: MetaRouter consolidates data from multiple sources, aiding identity resolution in Treasure Data by unifying user data across channels. Playbook mapping aligns incoming data to consistent fields, ensuring cohesive customer profiles within the platform.
- Attribute Enrichment: By routing detailed attributes (e.g.,
event
,userId
, enrichedcontext
properties) to Treasure Data, MetaRouter enables deeper segmentation and analysis. Field transformations, such as hashingproperties.title
to_titleHash
, provide additional enrichment options aligned with Treasure Data's data processing capabilities. - Automated Data Routing: Using the playbook, MetaRouter automates data flow configurations, enabling efficient data transformations and workflows while optimizing ingestion setup for reduced manual input.
Limitations
- Near-Real-Time Ingestion: While the Data Ingestion API supports low-latency data transfer, it does not guarantee instantaneous real-time ingestion. There may be minor delays depending on factors such as data volume and processing speed, which should be considered for time-sensitive applications
- Batch Size Limitations: The streaming ingest API batch endpoint pathÂ
records.in has the following limits:- 1-500 records
- 1MB max record size
- 5MB max batch size
- If this limit is exceeded, the API will return a 422 error.
Getting Started - From Your Treasure Data Account
- Endpoint
- Depending on your region, the endpoints are below
- US Region:Â https://us01.records.in.treasuredata.com
- EU01 Region:Â https://eu01.records.in.treasuredata.com
- Tokyo Region:Â https://ap01.records.in.treasuredata.com
- Korea Region:Â https://ap02.records.in.treasuredata.com
- AP03 Region:Â https://ap03.records.in.treasuredata.com
- Depending on your region, the endpoints are below
- API Key
- Please see Treasure Data instructions here on how to get your API Key.
Getting Started - From Your MetaRouter Account
Adding a Treasure Data integration.
From the integration library, add a Treasure Data integration. Then, fill out the Connection Parameters:
Connection Parameter | Description |
---|---|
ENDPOINT | Endpoint based on your region. Please see above. |
API_KEY | API key generated from your Treasure Data account. |
DATABASE_ID | The name of your database. |
TABLE_ID | The name of your table. |
Event Mappings
MetaRouter provides all of the event mappings that Treasure integrations typically require. You may add custom events, parameters or mappings in accordance with Treasure Data’s API documentation.
Global
Global mappings will be applied to all events. If your parameter names do not match the Expected Inputs provided, you will need to overwrite the Inputs provided with your own.
Output Key | Description | Expected Input |
---|---|---|
id | String: Unique identifier for the message. | messageId |
user_id | String: Unique identifier for the user. | userId |
previous_id | String: Identifier for the previous session or user. | previousId |
anonymous_id | String: An identifier for an anonymous user. | anonymousId |
original_timestamp | Timestamp: Timestamp when the original event occurred. | originalTimestamp |
received_at | Timestamp: Time when the event was received by the system. | receivedAt |
sent_at | Timestamp: Timestamp when the data was sent to Treasure Data. | sentAt |
timestamp | Timestamp: The primary timestamp for when the event took place. | timestamp |
integrations | JSON Object: Specifies enabled integrations for the event. | integrations |
type | String: Type of event being tracked (e.g., "track", "identify"). | type |
event | String: Name of the event. | event |
name | String: Name associated with the event or action. | name |
category | String: Category of the event or content. | category |
_titleHash | String (MD5 Hash): MD5 hash of the event title. | properties.title |
context_ | Various: Fields within context are flattened with a context_ prefix. | context |
traits_ | Various: Fields within traits are flattened with a traits_ prefix. | traits |
properties_ | Various: Fields within properties are flattened with a properties_ prefix. | properties |
Additional Treasure Data Documentation
Updated about 1 month ago