
- In Kameleoon, click Configure > Goals.

- Click New goal.

- In the pop-in, provide the following details:
- Name: Give your goal a descriptive name to identify its purpose.
- Type: Select Data Warehouse Tracking.
- Data Warehouse: Choose Snowflake.
- Project: Select your desired projects. Only projects with Snowflake activated are listed.
- Click Next to proceed.
- In the next window, you must provide additional details:
- Frequency: Define how often you want Kameleoon to update the goal data.
- Snowflake project ID: Enter your Snowflake project ID to direct data to the correct location.
- Region: Select the appropriate region from the list.
- Query: Define the SQL query to retrieve the necessary data from Snowflake.
- Click Validate to save your goal configuration.
Query format
The query must adhere to a specific format:SELECT visitor_id, conversion_timestamp FROM your_events_table
Where visitor_id is the column representing the unique ID of your visitors, and conversion_timestamp is a column representing the exact time at which the conversion took place. In Snowflake, 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:
SELECT visitor_id, conversion_timestamp, revenue FROM your_events_table
Where 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.
