Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Need IMMEDIATE help (https://www.warriorforum.com/programming/1156403-need-immediate-help.html)

kubikdanon 6th February 2016 11:39 AM

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..

Jill Carpenter 6th February 2016 12:52 PM

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?

Jill Carpenter 6th February 2016 12:54 PM

Re: Need IMMEDIATE help
 
What you need is a device detection set up in a script.

https://css-tricks.com/snippets/java...obile-devices/

jjhf 6th February 2016 12:57 PM

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.

onSubie 6th February 2016 12:58 PM

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?

kubikdanon 6th February 2016 01:05 PM

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?

Jill Carpenter 6th February 2016 02:32 PM

Re: Need IMMEDIATE help
 
Quote:

Originally Posted by kubikdanon (Post 10525535)
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?

Not sure you will find it - or for free at the very least.

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.

kubikdanon 6th February 2016 02:35 PM

Re: Need IMMEDIATE help
 
Quote:

Originally Posted by Jill Carpenter (Post 10525620)
Not sure you will find it - or for free at the very least.

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.

Ok, so through a website, how can I do that? I am trying to do it with that css trick, but it doesnt work for me now.

robomedia 7th February 2016 01:21 PM

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.