Overview: Query Builder for App Store Connect

We have identified reliability issues with the App Store Connect integration that results in the Data Source displaying an error (“2FA token has expired’ or “Fatal connect error, please try again (timeout)“. This appears to be a universal issue with the App Store Connect API.

In order to ensure we provide our users with stable, reliable data, we have decided to temporarily remove the App Store Connect integration from our list of available integrations. Therefore, it is not possible to connect new App Store Connect Data Sources.

We are working to determine if there is a more stable way to access App Store Connect data and will restore the integration if so. You can upvote the development for this integration here. Please contact Support directly with any questions.

With the Query Builder for App Store Connect, you can create Custom App Store Connect Metrics using a combination of Metrics, Dimensions, and Filters. 

Some popular use cases for the Query Builder for App Store Connect include creating Custom Source, Device, and Campaign-specific Metrics. 


How to access the Query Builder for App Store Connect

Navigate to Metrics > Query Builder to access the Query Builder. Click the green + New Custom Metric button and select your connected App Store Connect Account from the Data Source drop-down list. 

    Query Builder is available in Plus and Business Accounts. Agency Basic Accounts have access to Query Builder in the Agency Account only.  Request a trial of Query Builder by following these steps.  

How to use the Query Builder for App Store Connect

  Metric: Select a Metric from your connected App Store Connect Data Source, such as Installations, Crashes or In-App Purchases.    
  Dimension (Optional): The Dimensions parameter re-categorizes the returned Metric value based on common criteria. Examples of Dimensions are Device, App Version, and Campaign. If no Dimension is selected, the Custom Metric will store 1 aggregated Metric value for each Date Range. 
Pro Tip: Add the word "by" in between the Metric and Dimension in order to determine an appropriate Custom Metric Name. From the Metric and Dimension examples outlined above, we could create the Custom Metrics "Installations by Device," "Crashes by App Version," or "In-App Purchases by Campaign."
  Date Range: Select up to 8 Date Ranges that will be available for the Custom Metric. The Date Ranges selected are the only periods of time that data is synced for this Custom Metric. 
   Compare With (Optional) : Select a comparison period to measure each Date Range against. Data for the comparison period will be synced for each Date Range that is selected. 
This data can be used on a Line Chart or Bar Chart to show past performance. It is also used to calculate the percentage growth or loss of the current Date Range performance vs the comparison Date Range performance. If no "Compare With" parameter is selected, comparison percentages cannot be displayed for the Custom Metric. 
  Filter by (Optional) Filters restrict the data that gets included in the Custom Metric. All data that is returned is tested against the Filter(s). Multiple Filters can be combined using AND boolean logic. 
When setting a Filter, you can either select "Metric" or "Dimension" as the Filter by field. This selection refers to the "Metric" or "Dimension" set in step  B / step C. 
If the data synced from the Metric and Dimension fields meet the Filter specifications, the data is retained and included in the Custom Metric value. If the data synced from the Metric and Dimension fields don't meet the Filter specifications, the data is excluded from the Custom Metric value.
  Custom Metric Name: Enter a name for your Custom Metric. This Custom Metric name will be available in the Designer after saving. 
  Data Preview: After clicking Run query, a Data Preview of the Custom Metric will be displayed. Daily Metric values are displayed in this section, along with the total Metric values for the Date Range in bold at the bottom. You can view the Data Preview for different Date Ranges by clicking on the tabs at the top of the Data Preview. 
Pro Tip : If you don't know which Filters to put in place for your use case, use the Dimension + Data Preview to troubleshoot and get more insight into the data that is returned from your App Store Connect Account for each field. Learn more here.

How to create a Custom App Store Connect Metric [Example]

In this example, we'll create a Custom Metric to report on Installations tracked in the App Store Connect Account split up based on the Region where the User accessed the app.

 Navigate to Metrics > Query Builder   
 Click the green + New query button
 Select the appropriate App Store Connect Data Source
 Next, we'll select Installations from the Metric drop-down list
 We want to split up the Installations based on the region, so we'll select Region as the Dimension
 From the Date Range drop-down list we'll select any Date Ranges that we want available for this Custom Metric
 In order to get a better understanding of current performance, we'll choose Previous Period from the Compare With drop-down list
 We don't need to further Filter the data, so we will leave the Filter section blank as well. 
 In order to accurately explain what this Custom Metric is reporting on, we'll name the Custom Metric "Installations by Region" 
 Click Run query to generate a Data Preview of the Custom Metric. 
 Once we confirm that these are the results we're looking for, we'll click Save to save the Custom Metric. 

How to add a Custom App Store Connect Metric to a Databoard

Learn how to add a Custom Metric to a Databoard here

Additional Information

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us