Home › Forums › Quform WordPress › Quform and Ecommerce Measurement › Reply To: Quform and Ecommerce Measurement
March 18, 2020 at 6:55 pm #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.