Once you’ve activated Snowflake for a specific project, you can use it to create goals in Kameleoon. These goals are designed to use conversion data from your Snowflake database. Here’s how to create a goal using Snowflake: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.

- 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.
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.
