📄️ Consent modes
Under the GDPR and the ePrivacy Directive, collecting and processing visitor data often requires explicit consent.
📄️ Consent callback
Activating the Script on Visitor Consent
📄️ Anti-flicker script
If you are experiencing "flicker" with your experiments you can implement our anti-flicker script. This will render the page white until the variation changes has been made. This has a fallback to remove the white page after five seconds if the Lyftio for any reason has not loaded by that.
📄️ Adding revenue
To track revenue data in your experiments, you need to implement a revenue callback on your success page. For e-commerce sites, this is typically the “thank-you” or order confirmation page — the page that verifies the purchase and includes details such as the order ID, total order value, and item quantity.
📄️ Forward events to GA4
By default, Lyftio pushes events containing experiment information to the dataLayer. This occurs the first time a visitor is exposed to an experiment during a session. Google Tag Manager can be configured to capture this information and forward it to GA4.