How to add variables / custom data to custom scripts
To add variables/custom data to custom scripts, you need to make sure that the data is available before the script has triggered.
The easiest way to ensure that, is to use the data provided by the fpdata JavaScript object. Its contents are updated to reflect user actions.
Please enter “fpdata” in your browser’s console to see what data is available and how it changes depending on what you do on the site.