8 replies
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..
  • Profile picture of the author Jill Carpenter
    Are you putting this link on a website of your own?

    If so, is your website an html or wordpress site?
    Signature

    "May I have ten thousand marbles, please?"

    {{ DiscussionBoard.errors[10525522].message }}
  • Profile picture of the author jjhf
    Are you using any kind of tracker? Most modern trackers have rules you can put in place to do just that.
    {{ DiscussionBoard.errors[10525526].message }}
  • Profile picture of the author onSubie
    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?
    {{ DiscussionBoard.errors[10525528].message }}
  • Profile picture of the author kubikdanon
    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?
    {{ DiscussionBoard.errors[10525535].message }}
    • Profile picture of the author Jill Carpenter
      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.
      Signature

      "May I have ten thousand marbles, please?"

      {{ DiscussionBoard.errors[10525620].message }}
      • Profile picture of the author kubikdanon
        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.
        {{ DiscussionBoard.errors[10525624].message }}
        • Profile picture of the author robomedia
          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();
          {{ DiscussionBoard.errors[10526850].message }}

Trending Topics