The Optimizely Data Developer Hub

Welcome to the Optimizely Data developer hub. You'll find comprehensive guides and documentation to help you start working with Optimizely Data as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Snowflake Integration

Overview

Snowflake is a data warehouse that many companies use to store and analyze data. In order to analyze Optimizely’s experiment data within Snowflake, you have, until now, needed to write a custom ETL to pull that data from Optimizely’s AWS S3 buckets into your own data warehouses.

With a direct Snowflake integration, Enriched Events Export decisions and conversions appear automatically in your Snowflake instance:

How can I get started?

  • Check with your Technical Account Manager (TAM) that Enriched Events Export is a feature available in your Optimizely plan.
  • Check with your Snowflake representative that Secure Data Sharing is a feature available in your Snowflake plan.
  • Send Optimizely your Snowflake account name and region.
  • Verify you can query your Enriched Events Export datasets with Snowflake, once Optimizely confirms the share is enabled. This typically takes a few days.

Usage examples

How many new visitors saw the updated call to action on my subscription page last week?
Exposure to the new CTA should be aligned with lifetime value predictions generated for visitors to my site. This query looks at decision events for my experiment in the last week, to find new visitors, and counts unique visitors who converted after a decision event, using the conversion event name ‘CTA_entered_viewport’.

SELECT COUNT (distinct visitor_id) as visitor_count
FROM (
     SELECT c.visitor_id
     FROM conversions c
     INNER JOIN 
     (
        SELECT visitor_id, MIN(timestamp) as decision_timestamp
        FROM decisions
        WHERE experiment_id = '10728121502'
        AND variation_id = ‘38495823’
        AND timestamp between '2020-08-20 00:00:00.000' 
        AND '2020-08-27 00:00:00.000'
        AND is_holdback = false
        GROUP BY visitor_id
     ) d 
     ON c.visitor_id = d.visitor_id
     WHERE parse_json(experiments[0]):list[0]['element']:experiment_id = '10728121502'
     AND parse_json(experiments[0]):list[0]['element']:variation_id = ‘38495823’
     AND c.timestamp  between '2020-08-20 00:00:00.000' 
        AND '2020-08-27 00:00:00.000'
     AND c.event_name = ‘CTA_entered_viewport’
     AND c.timestamp >= d.decision_timestamp
)

How many times per day did visitors who saw the new call to action click on it?
Clicks on the new CTA should be joined with user-level revenue averages for visitors to my site. This query looks at all ‘CTA_clicked’ events for my experiment and CTA variation, grouped by date.

SELECT to_date(timestamp) as timestamp, COUNT(*) as click_count
FROM conversions
WHERE parse_json(experiments[0]):list[0]['element']:experiment_id ='10728121502'
  AND parse_json(experiments[0]):list[0]['element']:variation_id = ‘38495823’
  AND timestamp  between '2020-08-20 00:00:00.000' 
      AND '2020-08-27 00:00:00.000'
   AND event_name = ‘CTA_clicked’
GROUP BY to_date(timestamp)
ORDER BY to_date(timestamp) asc

How will this feature be priced?

This integration is free to Business and Enterprise customers up to 1 billion events per month. Reach out to your AE for details.

Updated about a month ago

Snowflake Integration


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.