Home › Forums › Quform WordPress › Quform and Ecommerce Measurement
- This topic has 6 replies, 2 voices, and was last updated 4 years ago by Ally.
- AuthorPosts
- February 25, 2020 at 12:43 pm #30690HaranzaParticipant
Hello,
Is it possible to integrate Ecommerce Measurement and send information like SKU, category, price etc.?
https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce#addItem (see Add Item)
If yes, can you send me a sniped of code?Thank you
February 25, 2020 at 3:17 pm #30692HaranzaParticipantI also need to generate a random transaction ID for that purpose and also need to add ti to email confirmation and to subject. How I can do that?
Thank you for advice
February 26, 2020 at 9:37 am #30696AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 26, 2020 at 10:13 am #30700HaranzaParticipantHello,
Thank you for your answer. Is it possible to do it for all my forms or do I need to do it separately for every form I create?
February 26, 2020 at 11:19 am #30704AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
March 18, 2020 at 6:55 pm #30855HaranzaParticipantThank 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, 1 month ago by Haranza.
March 22, 2020 at 7:39 pm #30877AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.