- BI tools like Looker, Tableau, Google Data Studio, etc.
- Product Analytics tools like Mixpanel, Amplitude, Pendo, Posthog, etc.
Step 1 - Schedule the Zap to run automatically
Youâll want to configure this Zap to run automatically at a cadence that makes sense for you. We recommend updating metric card values every week on Sunday night but feel free to update them daily if youâd prefer.Step 2 - Request the data from your analytics tool
The next step is to request the data youâre looking for itâs data source. Every tool is different, but most of them have an API that allows you to query the data youâre looking for.Tips for making API calls to various analytics tools
Posthog
First you need to get the actual ID of the Insight you want the data for. Use a tool like Postman to hit the endpoint that gets all of your saved Insights. Look through the response for the ID of the Insight you want because the thing that looks like the ID in the URL when youâre viewing the Insight doesnât work with the API.Mixpanel
Go to Mixpanelâs Insights API Doc and fill in the and to get the correct URL to hit. On the right side of that page, fill in your Mixpanel and and it will give you the value youâll need to add as a header to the request.Amplitude
Start by grabbing your projectâs API key and Secret Key. Go here to determine the URL for the Amplitude endpoint youâll want to hit. Amplitude requires you to set a header with the name . The value for header should be your API Key and Secret Key (in this format: api_key:secret_key) encoded in Base64. Hereâs a tool for Base64 encoding your Api Key and Secret Key.Looker
First get the underlying Query from a saved Look and then make a request to run that Query.Step 3 - Transform the data if necessary
Every tool returns data a bit differently. Some will automatically group the data by day or week or month, some will return raw event-level data that needs to be aggregated, and others may apply filters or transformations before returning results. You may need to reshape the data, adjust time granularity, or extract specific metrics before posting to Vistaly. Zapier has a âCodeâ Zap with an AI assist that will allow you to pass in the data from your API request and then help you write the code to get it into the state youâre looking for.Step 4 - Update the metric card in Vistaly
The last step is to use Vistalyâs Zapier integration to update your metric card. To do so, youâll need to link your Vistaly account with your API Key. With your Vistaly account linked, youâll need to get the ID of the metric card you want to update. You can find this by clicking on the metric card in Vistaly and grabbing thecardId out of the URL.
Use the data from the previous step as the value.
You probably want to leave the âtimestampâ field blank, which will automatically default to the time we receive the API call.