You can get more information about how merchants are finding your app listing in the Shopify App Store by tracking your listing traffic with Google Analytics or Facebook Pixel. [Optimize your listing](/docs/apps/launch/marketing#improving-your-app-listing) for both merchants and the Shopify App Store search engine, by gaining a better understanding of how merchants currently discover your app. > Note > Both [full and limited visibilty](/docs/apps/launch/distribution/visibility) apps can add Google Analytics or Facebook Pixel tracking, but limited visible apps won't show up in Shopify App Store search results or category pages. ## Set up Google Analytics for your app listing 1. Log in to your [Partner Dashboard](https://partners.shopify.com/organizations). 2. Click **Apps**. 3. Click the name of your app. 4. Click **Distribution**. 5. Click **Create listing** or **Manage listing**, and then click the listing that you want to edit. 6. In the **Tracking information** section, next to **Google analytics code (optional)**, enter your GA4 measurement ID. 7. Click **Save**. ### Migrating from Universal Analytics to Google Analytics 4 Google Universal Analytics is being sunset in July 2023. If you previously used Universal Analytics for your app listing and you want to migrate to Google Analytics 4, then follow the [process to set up Google Analytics](#set-up-google-analytics-for-your-app-listing), but replace your UA tracking ID with your new GA4 tracking ID. Depending on how you use Universal Analytics, you might need to perform the following additional steps: - If you use Universal Analytics audiences, then you need to [migrate audiences to GA4](https://support.google.com/analytics/answer/11184423). - If you use Universal Analytics to track Google Ad conversions on your app listing, then you need to [migrate conversion tracking to GA4](https://support.google.com/analytics/answer/11184423). ### Full-funnel app install attributions To provide full details of the app installation funnel, the Shopify App Store uses [Google Analytics 4's Measurement Protocol](https://developers.google.com/analytics/devguides/collection/protocol/ga4) for server-side events (like app installation). To receive these events, an app listing must be on Google Analytics 4 and have entered an API secret generated in the Google Analytics UI. The following events are sent to Google Analytics and display in the Real-time view. However, event parameters might take up to 24 hours to propagate and need to be added as an [Event-scoped Custom Dimension](https://support.google.com/analytics/answer/10075209?hl=en#zippy=%2Ccreate-an-event-scoped-custom-dimension%2Ccreate-a-custom-metric%2Canalyze-an-event-scoped-custom-dimension).
Events sent to Google Analytics
Event name Parameters Description
shopify_app_install
  • api_key
  • shop_id
  • shop_name
  • shop_url
Sent when a merchant finishes installing an app.
shopify_app_ad_click
  • api_key
  • surface_type
  • surface_detail
Sent when a merchant visits an app listing from a Shopify App Store ad click.
To generate an API secret: 1. Log into your [Google Analytics](https://analytics.google.com/analytics/web/#/). 2. Click on the **Admin** icon in the bottom left corner. 3. Click on **Data Streams** under Property settings. 4. Select the measurement stream which corresponds to the **Measurement ID** which you have added to your app listing. 5. Click on **Measurement Protocol API secrets** and click **Create** to generate a new API Secret. To add the API secret to your app listing: 1. Log in to your [Partner Dashboard](https://partners.shopify.com/organizations). 2. Click **Apps**. 3. Click the name of your app. 4. Click **Distribution**. 5. Click **Create listing** or **Manage listing**, and then click the listing that you want to edit. 6. In the **Tracking information** section, next to **Google analytics code (optional)**, ensure you have upgraded to Google Analyitics 4. 7. Enter your API Secret. 8. Click **Save**. ### Google e-commerce events To enhance tracking for e-commerce related interactions, the following events have been implemented:
E-commerce events sent to Google Analytics
Event name Parameters Description
view_item
  • currency
  • value
  • items
  • item_id
  • item_name
  • price
  • quantity
Sent when a merchant views an app's details page
add_to_cart
  • currency
  • value
  • items
  • item_id
  • item_name
  • price
  • quantity
Sent when a merchant clicks the Install button
### Other events You might want to track the following additional Shopify-specific events in Google Analytics. These events are triggered client-side from the Shopify App Store.
Event sent to Google Analytics
Event name Parameters Description
Add App button
  • event_category: Always returns Shopify App Store.
  • event_label: The app's handle.
Sent when a app user clicks Install on an App Listing page.
Open app button
  • event_category: Always returns Shopify App Store.
  • event_label: The app's handle.
Sent when a app user clicks Open on an App Listing page.
## Set up Facebook Pixel for your app listing 1. Log in to your [Partner Dashboard](https://partners.shopify.com/organizations). 2. Click **Apps**. 3. Click the name of your app. 4. Click **Distribution**. 5. Click **Create listing** or **Manage listing**, and then click the listing that you want to edit. 6. In the **E. Tracking** section, next to **3. Facebook Pixel (optional)**, enter your Facebook Pixel tracking ID. 7. Click **Save**. ### Meta Pixel events To enhance tracking for e-commerce related interactions, the following events have been implemented:
E-commerce events sent to Meta Pixel
Event name Parameters Description
ViewContent
  • content_ids
  • content_name
  • currency
  • value
Sent when a merchant views an app's details page
AddToCart
  • content_ids
  • content_name
  • currency
  • value
Sent when a merchant clicks the Install button
## URL parameters After you've set up Google Analytics or Facebook Pixel for your app listing, Shopify passes additional URL parameters when a merchant visits your app listing from the Shopify App Store. You can see parameters such as the following in your Google Analytics or Facebook Pixel dashboard: ![The additional parameters shown in the Google Analytics or Facebook Pixel dashboard](/assets/api/being-successful-in-the-app-store/ga-parameters.png) These are noteworthy parameters which can appear in the URL and their meaning:
Parameter Description Possible values
locale The language that the merchant has selected in the Shopify App Store.
  • zh-CN: Chinese (Simplified)
  • zh-TW: Chinese (Traditional)
  • cs: Czech
  • da: Danish
  • nl: Dutch
  • fi: Finnish
  • fr: French
  • de: German
  • hi: Hindi
  • it: Italian
  • ja: Japanese
  • ko: Korean
  • nb: Norwegian (Bokmal)
  • 193
  • pl: Polish
  • pt-PT: Portuguese
  • pt-BR: Portuguese (Brazilian)
  • es: Spanish
  • sv: Swedish
  • th: Thai
  • tr: Turkish
surface_type The type of page the merchant came from to get to your app listing.
  • home: The home page of the Shopify App Store.
  • search: The organic search result on the Shopify App Store.
  • search_ad: The paid search result on the Shopify App Store.
  • category: One of the category pages on the Shopify App Store.
  • collection: One of the collection pages on the Shopify App Store.
  • story: One of the story pages on the Shopify App Store.
  • partners: One of the partner pages on the Shopify App Store.
  • app_details: One of the app listing pages on the Shopify App Store.
  • app_group: One of the app extension pages on the Shopify App Store.
surface_detail Details about the page that the merchant came from.
  • For home, this is the descriptive handle of the section of the home page where the merchant found your app.
  • For search, this is the merchant's search query.
  • For category, this includes the titles of the category and the subcategories, joined by a hyphen.
  • For collection, this is the title of the collection where the merchant found your app.
  • For story, this is the descriptive handle of the section of the story page where the merchant found your app.
  • For app-details, this is the unique handle of the app listing page where the merchant found your app.
surface_inter_position The section on the page where the merchant found your app.
  • For home, this is the section of the Shopify App Store home page where the merchant found your app. The sections are numbered from the top, starting with 1.
  • For search, this is the page of search results where the merchant found your app.
  • For category, this is the page of category results where the merchant found your app.
  • For collection, this is the page of collection results where the merchant found your app.
  • For story, this is the section of the story page where the merchant found your app. The sections are numbered from the top, starting with 1.
  • For app-details, this is the section of the app listing page where the merchant found your app. The sections are numbered from the top, starting with 1.
surface_intra_position The position within the section of the page where the merchant found your app. The positions are numbered left to right, top to bottom, starting with 1.
  • For home, this is the position of your app within the section.
  • For search, this is the position of your app on the results page.
  • For category, this is the position of your app on the category page.
  • For collection, this is the position of your app on the collection page.
  • For story, this is the position of your app within the section.
  • For partners, this is the position of your app on the partner page.
  • For app-details, this is the position of your app within the section.