Direct user via incoming link

I am attempting to use an if statement to change the styling of a page, if a user comes from a specific link and do not know how I should set this up.

For example, if a user comes from a bitly link I would like for them to see different styling than if a user comes from any other link.

Read More

I am developing in WordPress, is this possible?

Related posts

Leave a Reply

1 comment

  1. Use query strings, send different users to different urls. www.yourwebsite.com?src=bitly

    if(isset($_GET) AND $_GET['src']=='bitly'){
    
    //special styling or actions for those coming from bitly
    
    }
    

    So you should create links from different websites that link to the same page, but with a different query string, so for example a link from your blog: yourwebsite.com?src=your_blog. This should work with bitly, enter the complete url including the query string into bitly.