Tracking
Apple apps
Count the screens and events of an iOS, iPadOS, macOS, tvOS, watchOS or visionOS app with a small Swift package, with no advertising ID or device ID.
Quietlytics can count the screens and events of an iOS, iPadOS, macOS, tvOS, watchOS or visionOS app, with the same privacy rules as a website: no cookies, no advertising ID, no device ID, and a visitor code that changes every day.
Add your app
- Open Websites & apps and choose the Apps tab. Enter your app's bundle identifier, for example
com.example.notes, and choose Add app. - Copy the key it shows, which starts with
qla_. It is shown once. If you lose it, choose Replace key and the old one stops working at once.
Apps share your plan's limit with websites, so a Hobby account can have one website or one app. The key ships inside your app, so treat it as a label that says which app an event belongs to, not as a secret. Quietlytics rate limits each app, so someone who copies the key cannot flood your numbers.
Check it against the App Store
Optional. Once your app is released, open the app on the Websites & apps page, choose Check App Store listing, and Quietlytics looks up the developer website that Apple lists for the bundle identifier. If you own that website, the app is marked as matching its listing. You can show that in either of two ways: verify the site on the Websites tab, or enter the developer website in the check and add the DNS TXT record it shows, at _quietlytics. followed by the domain. The record carries a value specific to the app, and it does not add the website to your analytics. It only proves who owns the listing and does not change how data is collected. It needs a released app, because Apple lists only those, and a developer website on the listing.
Two accounts can add the same bundle identifier, and each has its own key and its own data, so nobody can block you by adding yours first.
Install the package
In Xcode choose File → Add Package Dependencies and enter https://github.com/invisibleloop/quietlytics-swift, or add it to your Package.swift:
.package(url: "https://github.com/invisibleloop/quietlytics-swift", from: "1.0.0")
The package has no dependencies and needs iOS 15, macOS 12, tvOS 15, watchOS 8 or visionOS 1.
Configure it
Call configure once, as early as you can, so the first launch is counted:
import SwiftUI
import Quietlytics
@main struct NotesApp: App {
init() { Quietlytics.configure(key: "qla_…") }
var body: some Scene {
WindowGroup { Home().quietlyticsScreen("Home") }
}
}Screens
Record a screen view when a screen appears. In SwiftUI, add .quietlyticsScreen("Name") to the view. Anywhere else, call it yourself:
Quietlytics.screen("Settings/Profile")Screens appear in Top screens on the dashboard and count as screen views. A name is 1 to 100 characters: letters, numbers, spaces and _ . : - /. A number or ID inside a name, such as Order/48213, is replaced with :id, and a name that breaks the rules is dropped. Use fixed names for screens, not the content shown on them.
Events
Quietlytics.track("export", properties: ["format": "pdf", "pages": 3])The naming and property rules are the same as for website events: names up to 64 characters, up to five properties, short values, and anything that looks like personal data is dropped. Events appear in Custom events, and on Pro you can use them for goals and funnels.
By default the package also sends an app open event when your app comes to the front after 30 minutes or more away. This is what makes an app with no other events show visitors. Turn it off with Quietlytics.configure(key: "qla_…", trackAppOpens: false).
Let people opt out
Quietlytics.optOut() // stop tracking, discard anything not yet sent Quietlytics.optIn()
The choice is remembered between launches. Connect it to a privacy switch in your settings. Phones do not send Do Not Track, so this is how a person says no.
What is sent
- Your app's key, the screen or event name and its properties, the platform (such as
iosoripados), the operating system's major and minor version, and your app's version. - The server works out a coarse device class from the platform, and the country when the server sits behind Cloudflare.
- The visitor code is made from the app, the device's network address and the connection's user agent, with a random value that is deleted every day. The address is never stored, and a person cannot be recognised from one day to the next.
- Not sent: the advertising ID, the vendor ID, the device name or model, a user ID, or anything from your users' accounts.
The package keeps events that have not been sent yet in a small file in the app's own storage, up to 500 of them, and your opt-out choice in the app's own settings. Nothing is shared with other apps.
The dashboard for an app
An app's dashboard shows screen views, top screens, platforms, OS versions, app versions, devices, countries and custom events. Referrers, UTM campaigns, browsers, broken pages and page speed only apply to websites, so they are hidden. Choosing an OS version or an app version filters the rest of the dashboard, so you can see, for example, which screens people on the newest release use.
Things to know
- Visitors are counted per day. Someone who opens your app on three days counts three times, and Quietlytics cannot show retention or returning users. That is the trade for needing no identifier.
- Visitor counts are approximate. The code uses the network address, so a person who moves from Wi-Fi to mobile data in one day can count twice, and people on the same network with the same device software can count once.
- Events sent offline are kept for up to an hour. The server records an event with the time it arrives, so an event that has waited longer than that is dropped instead of being recorded at the wrong time.
- Your App Store privacy details are your responsibility. Quietlytics collects usage data (screens and events) and an approximate location (country) for analytics. It is not linked to a person and not used to track people across apps and websites. Check the other tools in your app as well.
- Self-hosting? Pass your own address:
Quietlytics.configure(key: "qla_…", endpoint: URL(string: "https://your.host/api/app-event")!). - Removing an app from your account also deletes its data.