Data Warehouse
See every event, attribute and revenue event your app sends to Superwall, chart any of them in place, and open the SQL behind it in the Queries editor.
The Data warehouse page lists everything your app sends to Superwall: the events it fires, the revenue events your store integrations report, and the attributes it sets on users and devices. It also lists your project's saved queries. Open any row to chart it right in the list.
Use it to find the exact name of an event or attribute, check that a new event is arriving, or start a query. Data warehouse replaced the separate Data schema and Queries pages. Old links to either one open the Data warehouse.
Data warehouse is in early access. If you don't see it under Analytics, it isn't turned on for you yet.
Requirements
The page reads your data through the Query API, so you need the data:read scope with access to every project in the organization. Owner, Admin and User roles have it. Editors, Readers, Analysts and members with access to only some projects see Couldn't load the data schema instead of the lists. See Access Controls.
Saving a query needs the app to be in a project.
Open the data warehouse
- Open your app.
- Click Analytics in the sidebar.
- Choose Data warehouse.
The page shows production data only. Events and attributes that only ever arrived from sandbox aren't listed.
What's on each tab
The tabs, in order:
| Tab | What it lists |
|---|---|
| Custom events | Your own events: the placements you register and the events you track. |
| Standard events | Superwall's own events, such as paywall_open and transaction_complete. See Superwall Events for what the SDK's events mean. |
| Revenue | The revenue events your store integrations report, such as initial_purchase and renewal, one row per event and integration. The SDK's own transaction_complete is here too, labeled Superwall SDK. |
| User attributes | The attributes your app sets on users with setUserAttributes. |
| Device attributes | The attributes the SDK reports about each device. |
| Saved queries | The queries your project has saved, from a row or from the editor. |
The page opens on Custom events. Each tab shows how many items it has.
Events show their name, how many properties they've carried, how many times they arrived in the last 30 days with a sparkline of each day, and when they last arrived. Today is still arriving, so the end of the sparkline is dashed.
Revenue events show their name with the integration that reported them, and the number of refunds on a cancellation. They also show the stores they came from, their count for the last 30 days with a sparkline, and when they last arrived.
Attributes show their key, their type, such as String or Int64, and when the key last arrived. A key that has arrived with more than one type shows each one.
Saved queries show their name and when they were last updated.
Click a key or event name to copy it. Click a column header, except Type and Stores, to sort by it. Long lists show 100 rows at a time, with Show more at the end.
Chart a row
Click a row, or its arrow, to open it. The row opens in place and runs its query right away. You can open several rows at once to compare them.
What an open row charts:
- An event: how many times it arrived each day for the last 30 days. Its property keys are listed under the chart.
- A revenue event: how many times it arrived each day from that integration. Its fields are listed under the chart, the ones that matter most for that event first. Click Show all N fields to see the rest.
- An attribute: how many times the attribute was set each day, split by its values.
- A saved query: its result, as it was saved.
To split an event or revenue event by one of its keys:
- Open the row.
- Hover a property key or field under the chart.
- Click Split by.
The chart now shows the event's daily count split by that key's values. Click Remove split to go back. Revenue fields that hold a date or an amount can't be split, so they have no Split by button.
A split shows the 8 most common values as their own lines and adds up the rest as (other values). Events that didn't carry the key show as (none).
Each open row has three views: Chart, Table and SQL. SQL shows the query the row runs, ready to copy. Click Save query to add it to Saved queries. A query that's already saved shows Saved.
Open a query in the editor
Free-form SQL lives on the Queries page, inside the Data warehouse. There are two ways in:
- From an open row: click Open in editor. The query opens on Queries as the row showed it, run and charted. From there you can change it, save it, or copy it as an API request for your own tools or agent.
- To start a new query: click the + button at the right of the tabs (Create query).
To return to the lists, click the back arrow beside the Queries title (Back to data warehouse).
Search
The search box at the top covers every tab at once: event names and every event's property keys, revenue event names and their integrations, attribute keys, and saved query names. Each tab's count changes to the number of matches. If the tab you're on has no matches, the page moves to the first tab that does.
Search matches loosely, so pwopen finds paywall_open. You don't need to type the $ at the start of the SDK's keys.
When an event matches because one of its properties does, opening it lists only the matching keys, up to 50 per event. That puts the key you searched for one click from Split by.
Press Escape to clear the search.
Build your own dashboards
The Build your own dashboards card at the top of the page shows how to use the same data in your own tools through the Query API. Its tabs are:
- Prompt: a prompt to paste into your coding agent, which builds a dashboard on your app's data.
- Query: a query request, as curl and TypeScript.
- Data schema: the requests that list your app's events and attributes.
Collapse the card to its title, or click its close button to hide it. The page remembers your choice in this browser.
Limitations
- Each event tab lists at most 1,000 event names, the most recently seen. If your app has sent more, the page says so, and older names aren't listed or searched.
- Each event lists at most 500 property keys, the most recently seen. If an event has carried more, its property list says so.
- Event counts are approximate, to within about 1.6%. An event delivered twice counts once.
- Standard events doesn't list the raw events RevenueCat's webhooks send, such as
renewal. Find RevenueCat's events on the Revenue tab instead. The raw rows are still there for SQL. - The lists can be a few minutes behind the events your app just sent.
Get the data schema from the API
The same lists, each event's daily volume, and the revenue events are available from the Query API under /v2/organizations/{organization_id}/query/schema. They need the same data:read scope with access to every project. The older /v2/charts/data-schema endpoints, which need charts:read, still work but are deprecated. See Find event names and property keys in Query ClickHouse.
Related
How is this guide?