Reply To: Quform and Ecommerce Measurement

Home Forums Quform WordPress Quform and Ecommerce Measurement Reply To: Quform and Ecommerce Measurement

#30855
Haranza
Participant

Thank you for your answer. But I am not technically proficient and I am not sure how to use these codes.

The first step is to create a hidden field then in data tab add {uniqid} to the Default value. Right?
The second step is to create a plugin and add this code to it:


add_filter('quform_replace_variables_pre_process', function ($replaced, $token) {
if ($token['name'] == 'uniqid') {
$replaced = uniqid();
}

return $replaced;
}, 10, 2);

And then I am not sure about JS code? Where I can add it for every form with different ecommerce values?

  • This reply was modified 4 years ago by Haranza.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy