Source attribution links
To attribute App Store installs to the link that drove them, route traffic through the attribution snippet (/t.js) instead of linking straight to the App Store. It records the click — source, campaign, UTMs, referrer — then redirects to your App Store page.
Add the snippet
Put this on a landing page you control (for example, your link-in-bio target). The redirect is your URL-encoded App Store link.
<script src="https://www.astronaut.sh/t.js?tracking_id=naut_xxxxxxxx&redirect=https%3A%2F%2Fapps.apple.com%2Fapp%2FidXXXXXXXXX"> </script>
Label the channel with UTMs
Append UTM parameters to the page URL:
https://yourpage.com/go?utm_source=tiktok&utm_campaign=launch
Source is taken from utm_source. The referrer (where the visitor actually came from) is stored separately and shown in its own tab on the dashboard — the two are no longer merged, so you can read paid channels and organic referrers independently.
To attribute revenue to individual creators, see Creator attribution.