APK track app installs without google play

I want to have an apk on my server i.e. mysite.com/app.apk and track coversions. Spent last 3 hours trying to crack this one no success. I can’t use google play broadcast receiver as mentioned here:
google play - Get referrer after installing app from Android Market - Stack Overflow

Any solutions how do do in myself? I’d like to pass parameter www.mysite.com/app.apk?referrer=unique_id to the apk and then fire it from inside the app on install as www.mytracker.com/uniqueid=unique_id

please point me in the right direction, couldn’t find it on my own.

Try this: android - is it possible to tracking App Referrers NOT with Google Play? - Stack Overflow