| | #1 |
| Active Warrior Join Date: 2016
Posts: 81
Thanks: 0
Thanked 16 Times in 10 Posts
|
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.. |
| |
| | #2 |
| simmered in sunshine War Room Member Join Date: 2008 Location: Right where I want to be...
Posts: 7,171
Thanks: 3,530
Thanked 4,188 Times in 2,305 Posts
Blog Entries: 24 |
Are you putting this link on a website of your own? If so, is your website an html or wordpress site? |
|
"May I have ten thousand marbles, please?"
| |
| |
| | #3 |
| simmered in sunshine War Room Member Join Date: 2008 Location: Right where I want to be...
Posts: 7,171
Thanks: 3,530
Thanked 4,188 Times in 2,305 Posts
Blog Entries: 24 |
What you need is a device detection set up in a script. https://css-tricks.com/snippets/java...obile-devices/ |
|
"May I have ten thousand marbles, please?"
| |
| |
| | #4 |
| - Miser - War Room Member Join Date: 2010 Location: Sioux Falls, SD
Posts: 96
Thanks: 4
Thanked 23 Times in 22 Posts
|
Are you using any kind of tracker? Most modern trackers have rules you can put in place to do just that.
|
| |
| | #5 |
| Senior Warrior Member War Room Member Join Date: 2010 Location: Ottawa, Canada
Posts: 2,622
Thanks: 515
Thanked 1,227 Times in 870 Posts
|
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? |
| |
| | #6 |
| Active Warrior Join Date: 2016
Posts: 81
Thanks: 0
Thanked 16 Times in 10 Posts
|
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? |
| |
| | #7 | |
| simmered in sunshine War Room Member Join Date: 2008 Location: Right where I want to be...
Posts: 7,171
Thanks: 3,530
Thanked 4,188 Times in 2,305 Posts
Blog Entries: 24 |
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. | |
|
"May I have ten thousand marbles, please?"
| ||
| |
| | #8 | |
| Active Warrior Join Date: 2016
Posts: 81
Thanks: 0
Thanked 16 Times in 10 Posts
|
| |
| |
| | #9 |
| Active Warrior Join Date: 2014
Posts: 84
Thanks: 5
Thanked 11 Times in 10 Posts
|
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(); |
| |