This guide contains all permissions and requirements for connecting your Snowflake data to Supermetrics.
You can connect to data sources from the Data sources page on the Supermetrics Hub. On the Hub, you can also share an authentication link to connect to a data source you don't have direct access to.
After you connect to the data source on the Hub, you can use the data source connection in all available destinations.
Required permissions
The Snowflake data source connector supports OAuth authentication. To connect with OAuth, you need the following:
- Snowflake account with the Account admin role
- OAuth client ID and client secret.
- Account/Server URL
- Full table name
- Warehouse name
Note that these values are case sensitive when connecting to Snowflake connector.
Please also note that the Snowflake table must contain a DATE or DATETIME column to support date range filtering in Supermetrics. You can identify compatible columns by opening the “Columns” tab of your table in Snowflake and sorting by Type.
Step 1: Create an OAuth client ID and client secret
- Log in to Snowflake and click SYSADMIN.
- Click Change, and select the ACCOUNTADMIN role.
- Run the following 2 commands in a worksheet:
- First command:
CREATE SECURITY INTEGRATION
"Supermetrics App"
TYPE = OAUTH
ENABLED = TRUE'
OAUTH_CLIENT = CUSTOM
OAUTH_CLIENT_TYPE = 'CONFIDENTIAL'
OAUTH_REDIRECT_URI = 'https://supermetrics.com/login-complete'
; - Second command:
SELECT SYSTEM$SHOW_OAUTH_CLIENT_SECRETS('Supermetrics App');
- First command:
- Click row 1 in the output. You'll find this at the bottom of the screen. A popup will open with 3 key-value pairs in JSON format.
- Copy the values after the keys OAUTH_CLIENT_ID and OAUTH_CLIENT_SECRET. These are your client ID and client secret — keep them safe.
Step 2: Find your Account/Server URL
- Log in to Snowflake.
- In the bottom left, click your username.
- Hover over Account in the menu that appears and click View account details.
- Copy the value for Account/Server URL.
Step 3: Find your full table name
- Log in to Snowflake.
- In the left side navigation, click Data → Databases.
- Select the database and schema where your table is located.
- Select the table you want to fetch data from.
- Once you are at the selected table the database name, schema, and table name are displayed at the top, separated by slashes in this format: DATABASE_NAME / SCHEMA_NAME / TABLE_NAME
- Copy these names and enter them in the following format when connecting in Supermetrics: DATABASE_NAME.SCHEMA_NAME.TABLE_NAME
Step 4: Find your warehouse name
- Log in to Snowflake.
- In the left side navigation, click Data → Databases.
- Select the database and schema where your table is located.
- Select the table you want to fetch data from.
- Open the Data preview tab.
- The warehouse name is visible next to the number of rows. Copy the warehouse name.
IP allowlisting
To enable Supermetrics for Snowflake, your database needs to accept connections from the Supermetrics IP addresses. See this article for the IP addresses you need to allowlist.
Query types
If prompted, you need to select a query type to pull data.
- Table: Fetch data from your table in Snowflake.
Connection instructions
When connecting to Snowflake, you need to provide your API credentials and set a Date column when prompted.
- Select the Snowflake data source on the Supermetrics Hub or in the data destination.
- If prompted, choose to make this connection shared or private.
- Click Start.
- Enter your API credentials, account URL, full table name and click Start.
Complete the OAuth login flow.
Create a query by selecting the desired metrics and dimensions.
Set a Date column under the options tab. Note that the Date column is case-sensitive and required.
See detailed instructions on how to connect to a data source from the Supermetrics Hub.
You can also connect to Snowflake from these destinations:
- Google Sheets: How to log in to a Supermetrics data source in Google Sheets
- Looker Studio: How to connect data sources to Looker Studio
- Excel: How to connect data sources to Excel with Supermetrics
- Power BI: How to create your first Supermetrics query for Power BI
- The Supermetrics API: How to use the Query Manager