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.
I am developing in WordPress, is this possible?
Use query strings, send different users to different urls.
www.yourwebsite.com?src=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.