This repository has been archived by the owner. It is now read-only.
Retrieve the URL an app was downloaded from using the QuarantineEventsV2 sqlite database. Useful for tracking app usage based on the download page/campaign.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
Where From Quarantine Edition.xcodeproj
Where From Quarantine Edition

Where From Quarantine Edition

When trying to determine the success of a AdWord/Facebook/Twitter campaign it might be useful to be able to track app usage based on the download page/link that caused the download.

This simple script uses OS X' QuarantineEventsV2 sqlite database to retrieve the URL where an app was downloaded from.


  1. Add an identifier to your download URL (e.g. ?campagaign=facebook_c18).
  2. Use the script to retrieve URL(s) for your app.
  3. Attach the campaign to your app's analytics data.

You can now track app usage based on the page or campaign where/when the download occured.


Output based on searching for Chrome downloads. I manually added ?ref=something_cool to one of my downloads.

Output when searching for downloads matching Chrome