Tracking App Installation Source via Query Parameter

We are growing our app through different platforms including influencers and affiliate program.
We are planning affiliate link like this. https://apps.shopify.com/example?affiliate=jhon-smith But we cannot see the request in our Remix Built app when an Installation is done.

How can we do that? We are self-managing all of this rather than relying on other third party apps.

The URL param won’t carry through into an actual app session after install. The correct way to track this would be using Google Analytics.