Wrote a script to synchronize the in-site sources and corresponding search terms for stores that installed the Shopify app

The GA event for Shopify’s shopify_app_install doesn’t include surface_type or surface_detail , so we can’t directly determine the specific source of the app installation.(Track your listing traffic)

A few days ago, while exploring in GA, I noticed that GA’s own “landing page” dimension contains this information (because it includes the complete query parameters).

So I built a little script to achieve this. It run Google Analytics report and pulls out the landing page info for each install. From there, it figures out the surface_type (like ‘search’) and surface_detail (the actual search term) for app installs.

You can find the code and detailed operating instructions in this repository: GitHub - fairjm/shopify-app-installed-shop-ga-sync: This project provides a script to synchronize Google Analytics data with a local database to analyze the acquisition source of Shopify app installations. This seems like a straightforward solution, and I’m curious if this implementation method is widely known, or if I’m just late to the party. Nevertheless, I hope it proves useful.

1 Like

Thanks for sharing that @Zwei_Black, it looks really useful!