Update on April 15, 2020: Also added
Let's say you want to output a section having for example, a welcome message on the front end only for users that visit your site from Facebook and you want to output another Section only for visitors that land on your Page after clicking through a link in Twitter.
To achieve this personalization, you
- define "referrer" query variable in WordPress
- register a condition that returns true if the URL parameter matches with the one user
entersin the condition
conditionfor your Oxygen sections i.e., enter asthe value of referrer URL parameter for the Facebook section and asthe value of referrer URL parameter for Twitter section.
- use referrer query variable in your URLs like
This does not work on the homepage due to a bug in WordPress.
Install and activate Code Snippets plugin.
Go to Snippets > Add New.
Title: Add "referrer" query variable
This is a premium members-only content.
To view the rest of the content, please sign up for membership ($47/month or $499 one-time).
Already a member? Log in below or here.