Protecting your lander from direct traffic
Zeno
Last Update há 2 meses
FunnelFlux uses Action Link URLs to track user's activities. These are URLs belonging to FunnelFlux and produce our so-called redirect-based tracking.
To prevent users from directly accessing your lander or skipping the intended flow, you will need a PHP Node early in your funnel flow to create a token. This will then help your lander validate the traffic and ensure that the user came from your entrance link or FunnelFlux redirect link, not directly to the lander.
Step 1: Add a PHP node
Here is the code that you can use in that PHP node:
Note that the above code is intended to protect this lander only within this funnel -- so if traffic comes to the lander via a different funnel (or someone tries to change the funnel ID in URLs), the lander will not load.By default, the token created is set to expire in 24 hours.
You can change the token expiry by adding a custom token called token-hours in your funnel's Advanced Settings > custom tokens area:
To set your token password, add a custom token called token-password in that same custom tokens area. By default, the password is set to 1234 in the earlier code.
You can find the custom tokens area here:
Enable accumulated URL Params
Next, enable the accumulated URL parameters option on the lander that you want to protect, to allow the PHP Node to pass the generated token.
Learn More about how accumulated parameter works.
Simply double click the lander node in the funnel > toggle to enable.
Update your lander's code
Make sure that your lander supports PHP code. Here is the code that you will place in your lander header section before the part:
Update this section of the code and replace the ##REPLACE## text with correct Funnel ID to match the funnel you're using, and your password that you have set in your funnel's Advance Settings.
This is all you need to protect your lander from direct access. Make sure to use the FunnelFlux redirect link to use this feature.
P.S. this code is designed to protect the lander within a specific funnel. If you would like to use this approach in multiple funnels, you can use the same password and just remove the funnel ID component used in the lander code, like so: