Hello After buy from codecanyon everything was working fine now I want to know is the app load from app or from the browser.
From the app, we push cookies on your website with key “DEVICE“. So read the cookies from your website if you found the value then it’s will be load from the app. On android, the value will be “Android” and on iOS, the value will be “ios”
Cookies for android: DEVICE=Android
Cookies for iOS: DEVICE=ios
Tips:
Read cookies on PHP: https://www.w3schools.com/php/php_cookies.asp
Read cookies on JavaScript: https://www.w3schools.com/js/js_cookies.asp
Example: If my app has a external link abc.com. When Imran visit my app and click on abc.com and visit it on mobile browser then the owner of abc.com knows what? Imran is visiting abc.com from My App(app name) or My website?
You need to use google analytic in this case. And you can detect that you are from app or browser so set custom logic on your website.