Once you’ve activated Databricks for a specific project, you can use it to create goals in Kameleoon. These goals are designed to utilize conversions data directly from your Databricks database. To create a goal using Databricks:Documentation Index
Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt
Use this file to discover all available pages before exploring further.
- Click Settings > Goals > New goal.
- Enter the following information:
- Name: Give your goal a descriptive name.
- Type: Select Data Warehouse Tracking.
- Data warehouse: Choose Databricks.
- Project: Select your desired project. Only projects with Databricks enabled are listed.
- Click Next.
- In the next window, provide additional details:
- Frequency: Select how often the task should run.
- Databricks catalog: Enter the name of the Databricks catalog that contains the schemas you wish Kameleoon to read from.
- Query: Enter a SQL query with two columns—the first column should contain the user ID (or
kameleoonVisitorCode), and the second should contain the corresponding value that you want to add as additional information (enrichment) for that user.
- Click Validate to save your goal configuration.
Data warehouse retention period: For an event to be polled, Kameleoon required that it remains accessible by your input query at least 72 hours after the event occurred.
Query format
The query must adhere to a specific format:visitor_id is the column representing your visitors’ unique ID, and conversion_timestamp is a column representing the exact time at which the conversion took place. In Databricks, the conversion_timestamp column must be a Timestamp type column.
If you want to associate a revenue to each conversion, the query should adhere to an alternate format:
revenue is a column containing the revenue for each conversion.
For more complex queries you can adhere to this format by formulating a sub-query as such:
WITH clause that filters by timestamps. Keep in mind that although conversions are collected hourly, they are only merged into your experiment results once per day.
Run your query before ingestion
Before saving your ingestion task, you can test your query directly in Kameleoon. Testing allows you to:- Verify the connection in real time.
- Confirm your credentials and access rights are correct, which helps detect issues immediately, without having to wait for the first data import.
- Validate your data’s structure and accessibility.
