Apple iTunes Connect Analytics: attribution provider and campaign id value passing to the app delegate

前端 未结 2 1886
执念已碎
执念已碎 2021-02-02 10:40

The new iTunes connect has analytics features now. You can specify the provider (pid) id and campaign id (cid) in the url. e.g.

https://itunes.apple.com/fr/app/candy-cru

相关标签:
2条回答
  • 2021-02-02 11:39

    If you'd like to build your own fingerprinting mechanism to handle all of this deep linking like we have at branch.io, I can give you some instructions how! One side note as I read it in the accepted answer comments is that the INSTALL_REFERRER in Google Play is often very slow (> 1s delay) to launch after install, so if you're depending your user experience on this, your users in are in for a bumpy ride.

    Here's how we built fingerprinting on iOS:

    1. Configure a server endpoint (something like yoursite.com/redirect) to accomplish two things:

      • Serve up some client side JS to open your app if installed or fall back to the App Store if not. I listed out this code in this answer
      • Capture a set of of parameters about the clicking user by reading their user agent, etc. Here's a simple subset that will work well:
        • OS
        • OS version
        • IP address
        • Device model
    2. When the user opens the app, send back that set of parameters, as read from the app to a new endpoint (something like yoursite.com/completematch).

    3. If there's a match, you can pass back the parameters.

    If you want to get savvy, you can drop a cookie on yoursite.com and save the match to the IDFA received from the app. Ideally, you'd only do this if you redirect into the app immediately so you're 100% sure of the match. Then if that same user ever clicks on the link again and installs the app, you don't have to use fingerprinting as you can just use the cookie-IDFA pair. We've got hundreds of millions of these at Branch so fingerprinting is more of a fallback mechanism at this point.

    0 讨论(0)
  • 2021-02-02 11:41

    Unfortunately these params are not passed into the app. They are only used for iTunes Connect stats.

    Here are the two common workarounds:

    1. Using a fingerprint to implement deferred deep link and passing the params through that link (Tapstream can do this).

    2. Using a provider like Tune/MobileAppTracking to match the link using the ID for advertising (IDFA).

    I wrote a blog post to explain the details: https://attributionapp.com/blog/lets-solve-ios-attribution-methods/

    I will edit this response in the future if Apple changes their API. If you let Apple know what you want to build and why passing in the params is a better policy they might change their minds faster: https://developer.apple.com/contact/

    0 讨论(0)
提交回复
热议问题