astronaut
PricingDocs
Sign in
Overview
IntroductionGetting started
Install
iOS SDKSource attributionCreator attributionWeb analytics
Using astronaut
The dashboardIdentifying usersVerified revenueEnvironmentsExperimentsPush notificationsChat

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>

That is the whole integration. Any page you can send traffic to will do — one you already have, or a few lines on a subdomain like app.yoursite.com. Nothing to configure beyond the tag.

Two things to get right: redirect must be URL-encoded, and the page has to be reachable by the people clicking your links — not behind a login.

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.

Creator links work from here too — add &creator_id=jane and nothing else changes. The shorter yoursite.com/jane form needs one extra piece of hosting setup, covered in Creator attribution.

← PreviousiOS SDKNext →Creator attribution
astronaut
Product
FeaturesPricingDocsLive demo
Legal
PrivacyTerms
© 2026 astronaut.shhello@astronaut.sh