FlipGuardian Advanced Redirect Feature
Be sure to have backups of your site before modifying your code.
We do not offer support on the use of the "query string" on your site.
If you don't understand the following instructions: DO NOT USE Advanced Redirect!
NOTE: The URL of the Unlocked PDF is different for each and every customer so the query string will be different for each and every customer
var urlParams = new URLSearchParams(window.location.search);var fg_pdf=urlParams.get('fg_pdf');
The above code will place the full PDF URL in a variable called fg_pdf and you can deal with it in your code on your page as you wish.
If you use WordPress there are plugins that let you extract parameters from the query string such as: https://wordpress.org/plugins/url-params/
- Backup your site first.
- Only do this if you know what you're doing
- We do not offer support for the coding on your page such as investigating if what you want to happen doesn't.
- Maybe take the time to read this article which has tips to avoid breaking your whole WordPress site: https://www.nosegraze.com/edit-functions-php/
Example use case for this feature :
You have a PDF to sell BUT when someone buys it, before you show them the full PDF you want to redirect them to an OTO upsell page to offer your training course to go alongside the PDF.