![]() |
Need IMMEDIATE help Hey guys, I want to set up a link so it works this way: If person has iOS, he will be redirected to App Store If person has Android, he will be redirected to Android Any help will be appreciated. Some type of service works too.. |
Re: Need IMMEDIATE help Are you putting this link on a website of your own? If so, is your website an html or wordpress site? |
Re: Need IMMEDIATE help What you need is a device detection set up in a script. https://css-tricks.com/snippets/java...obile-devices/ |
Re: Need IMMEDIATE help Are you using any kind of tracker? Most modern trackers have rules you can put in place to do just that. |
Re: Need IMMEDIATE help What are you coding in? If it's PHP, there are PHP libraries that can detect the O/S. Use that to determine what link to create and display. Why do you want that setup instead of displaying two links and letting the user decide what store they want to visit? |
Re: Need IMMEDIATE help Hey guys, let me explain this.. This is a CPA offer which has two apps for iPhone and Android I am promoting it via text link. What I want to do is if a person clicks the link he will be redirected to the correct offer based on his smarphone What FREE tracker can I use to set up rules? |
Re: Need IMMEDIATE help Quote:
Something somewhere has to determine the source. This is why you could shoot it through a website quickly that would handle the redirect. Person wouldn't necessarily know they hit through a site before seeing the offer. |
Re: Need IMMEDIATE help Quote:
|
Re: Need IMMEDIATE help Direct your link to page.php . iphone - Check if PHP-page is accessed from an iOS device - Stack Overflow $iPod = stripos($_SERVER['HTTP_USER_AGENT'],"iPod"); $iPhone = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone"); $iPad = stripos($_SERVER['HTTP_USER_AGENT'],"iPad"); $Android = stripos($_SERVER['HTTP_USER_AGENT'],"Android"); $webOS = stripos($_SERVER['HTTP_USER_AGENT'],"webOS"); if( $iPod || $iPhone ){ header("Location: http://example.com/iphone_offer.php"); }else if($iPad){ header("Location: http://example.com/ipad_offer.php"); }else if($Android){ header("Location: http://example.com/android_offer.php"); }else if($webOS){ header("Location: http://example.com/webos_offer.php"); }else{ header("Location: http://example.com/other_offer.php"); } die(); |
| All times are GMT -6. The time now is 02:17 PM. |