How to check referer?

Hello, how could I check the refferer?
For example I would like to show different content if user is coming from whatsapp and instagram.
Thanks!

Via document.referrer. (Document.referrer - Web APIs | MDN)

This plugin is perfectly fine for that:

2 Likes