Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 6th Feb 2016, 11:39 AM   #1
Active Warrior
 
Join Date: 2016
Posts: 81
Thanks: 0
Thanked 16 Times in 10 Posts
Default
Need IMMEDIATE help
Share on: 
fb share twitter share gplus share more share

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..
kubikdanon is offline  
Unread 6th Feb 2016, 12:52 PM   #2
simmered in sunshine
War Room Member
 
Jill Carpenter's Avatar
 
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
Default
Re: Need IMMEDIATE help
Share on: 
fb share twitter share gplus share more share

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?"
Jill Carpenter is offline  
Unread 6th Feb 2016, 12:54 PM   #3
simmered in sunshine
War Room Member
 
Jill Carpenter's Avatar
 
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
Default
Re: Need IMMEDIATE help
Share on: 
fb share twitter share gplus share more share

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?"
Jill Carpenter is offline  
Unread 6th Feb 2016, 12:57 PM   #4
- Miser -
War Room Member
 
jjhf's Avatar
 
Join Date: 2010
Location: Sioux Falls, SD
Posts: 96
Thanks: 4
Thanked 23 Times in 22 Posts
Default
Re: Need IMMEDIATE help
Share on: 
fb share twitter share gplus share more share

Are you using any kind of tracker? Most modern trackers have rules you can put in place to do just that.
jjhf is offline  
Unread 6th Feb 2016, 12:58 PM   #5
Senior Warrior Member
War Room Member
 
onSubie's Avatar
 
Join Date: 2010
Location: Ottawa, Canada
Posts: 2,622
Thanks: 515
Thanked 1,227 Times in 870 Posts
Default
Re: Need IMMEDIATE help
Share on: 
fb share twitter share gplus share more share

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?
onSubie is offline  
Unread 6th Feb 2016, 01:05 PM   #6
Active Warrior
 
Join Date: 2016
Posts: 81
Thanks: 0
Thanked 16 Times in 10 Posts
Default
Re: Need IMMEDIATE help
Share on: 
fb share twitter share gplus share more share

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?
kubikdanon is offline  
Unread 6th Feb 2016, 02:32 PM   #7
simmered in sunshine
War Room Member
 
Jill Carpenter's Avatar
 
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
Default
Re: Need IMMEDIATE help
Share on: 
fb share twitter share gplus share more share

Originally Posted by kubikdanon View Post

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.

"May I have ten thousand marbles, please?"
Jill Carpenter is offline  
Unread 6th Feb 2016, 02:35 PM   #8
Active Warrior
 
Join Date: 2016
Posts: 81
Thanks: 0
Thanked 16 Times in 10 Posts
Default
Re: Need IMMEDIATE help
Share on: 
fb share twitter share gplus share more share

Originally Posted by Jill Carpenter View Post

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.
kubikdanon is offline  
Unread 7th Feb 2016, 01:21 PM   #9
Active Warrior
 
Join Date: 2014
Posts: 84
Thanks: 5
Thanked 11 Times in 10 Posts
Default
Re: Need IMMEDIATE help
Share on: 
fb share twitter share gplus share more share

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();
robomedia is offline  
Closed Thread


Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 02:41 PM.