“Guru Voluum
Welcome to Our Community
Wanting to join the rest of our members? Feel free to sign up today.

Create your own deeplinks in 2 minutes and absolutely for free

Discussion in 'Programming and Scripts' started by Yellow Web, Oct 13, 2020.

Tags:
  1. Yellow Web

    Yellow Web Affiliate affiliate

    18
    11
    3
    Hi guys. I run an affiliate marketing blog and get many questions like: "How to promote a link after clicking on which the Instagram app will be opened and some Instagram profile will be shown?". The thing is, that if you just put smth like
    Code:
    https://instagram.com/dvygolov
    
    into your traffic source, then this link will be opened in a web browser. And that's not what we want, cause usually the user is not logged in there, the experience is not the same as in the app and so on. Here's where deeplinks come into place.

    Deeplink is not smth new. They've been here from the times of first smarphones. Usual links on the internet start with http or https while deeplinks don't. Almost all apps on your mobile phone register their own "protocols". For example Instagram links start with instagram://. But the problem is that you can't put this kind of link into your traffic source!

    Redirects to the rescue! I'll show you 3 ways to redirect a user to the Instagram app using PHP, JS and vanilla HTML.


    PHP example
    Any hosting with any PHP version will do. Create an index.php file there and put this code inside:

    Code:
    <?php
    header('Location: instagram://user?username=dvygolov',301);
    ?>
    
    Save the file, forward yourself a link to your domain in any messenger and try it. You'll see my Instagram profile, don't forget to subscribe ;-)

    JS example
    If you don't want to spend money on hosting you can use any website-constructor with Javascript support. Open index.html file and add this script there:
    Code:
    <script>
    windows.location.replace("instagram://user?username=dvygolov");
    </script>
    
    Check it the same way as in the previous example.

    HTML example
    Even if you don't have Javascript support you can create a redirect. Here's how. Open you index.html file and add this code INSIDE your <head> </head> tags.
    Code:
    <meta http-equiv="refresh" content="0; url=instagram://user?username=dvygolov">
    
    And you are good to go!

    Conclusion: don't use paid service for such a simple thing like deeplinks, just add some code-magic and have fun!
     
    MarketKing and kristen2540 like this.
  2. AdCombo
  3. Graybeard

    Graybeard Well-Known Member affiliate

    7,799
    5,006
    113
    I think people like to use 'web tools' for this because they have stats and don't require a user's webserver (to support the code).
    To add a counter to that scripting on your server is pretty simple to do ...
    And agreed --paying for this is silly ...
     
    kristen2540 and Yellow Web like this.
  4. Yellow Web

    Yellow Web Affiliate affiliate

    18
    11
    3
    If you are an affiliate and want to use smth like this - then just add a page like described above to any tracker. And you'll have all the stats that you need. Btw, I can't imagine an affiliate without webserver of hosting) Even if it is smth like Clickfunnels.
     
    MarketKing and kristen2540 like this.
  5. kristen2540

    kristen2540 Affiliate affiliate

    89
    91
    18
    Thanks for sharing this post
     
  6. Graybeard

    Graybeard Well-Known Member affiliate

    7,799
    5,006
    113
banners