Forum Replies Created
- AuthorPosts
deranaloge
ParticipantThank you for your answer.
Would be great if you can make that.For now, can you tell me the tales in db where you store the data? so i can build a custom statistic for now.
Thanks again
November 6, 2024 at 2:51 pm in reply to: adding date from form to event for google tag manager #37526deranaloge
Participanthi, one more question,
can i add this piece of code for each form in the custom java script settings page?
(i know i have to change the fomr id and the form field)thanks again
September 2, 2024 at 11:58 am in reply to: adding date from form to event for google tag manager #37327deranaloge
Participanthi,
thank you for your answer. i now added this code and it seems to work:jQuery(function ($) { $('.quform-form-1').on('quform:successStart', function () { var produkt = $('.quform-field-1_20').val(); dataLayer.push({ 'event': 'formsuccess', 'produkt': produkt }); }); });
thank you again
- This reply was modified 9 months, 2 weeks ago by
deranaloge.
August 30, 2024 at 12:16 pm in reply to: adding date from form to event for google tag manager #37323deranaloge
Participanthi,
thanks for your answer. now it does work when submitting the form.
but i need to send two form fields also so i have more information about the content.so waht i need is to add some kind of this into it:
jQuery(function ($) {
$(‘.quform-form-1’).on(‘quform:successStart’, function ()
{ dataLayer.push({
‘event’: ‘Contact Form’
‘produkt_id’: ‘form_field22’,
‘produkt_name’: ‘form_field11’
});
});
});so my problem is how can i get the data that the user filled in the field to push it to gtm (see produkt_id and produkt_name)? form_field22 and form_field11.
i hope i was able to desscribe it. so i just need to know how to push the form field data 🙂
deranaloge
ParticipantHi,
Thank you for your answer. I will try it tomorrow!
Is there also a way to get the product category and send depending on the product category a mail to an specific mail account? E.g. when catgerory clothes send mail to clothes@domain.com. when category food send mail to food@domain.com.Or if that is not possible:
When getting the product name can I make a condition: when product name contains “clothes” send mail to clothes@domain.com?Thanks again for your help.
Best regardsderanaloge
ParticipantHi,
awesome! it works now!
thank you for your support!best regards
Haraldderanaloge
ParticipantHi,
unfortunately, the change does not work.
The Ajax Error is gone, but no entry in the newsletter list.
The plugin is free https://wordpress.org/plugins/newsletter/, so it should work?
If you need Premium Addons let me knowthanks again!
Best regards
harald- This reply was modified 1 year, 7 months ago by
deranaloge.
deranaloge
Participanthm now i tried something myself:
add_filter(‘quform_post_process_2’, function($result, $form) {
if (class_exists(‘TNP_Subscription’)) {
$email = $form->getValue(‘quform_2_4’);
if (!empty($email)) {
$name = $form->getValue(‘quform_2_3’);
$subscription = new TNP_Subscription();
$subscription->email = $email;
$subscription->first_name = $name[2];
$subscription->last_name = $name[4];
$subscription->lists = array(1);
$subscription->send_welcome = true; // Setzen Sie dies auf true, um die Willkommens-E-Mail zu sendenTNP::subscribe2($subscription);
}
}return $result;
}, 10, 2);but i got an ajax error now…
deranaloge
Participanti made now a custom html button and it wqorks now 🙂
thanksderanaloge
ParticipantMessage sent! 🙂
thanks in advancederanaloge
ParticipantAwesome Support! Many thanks!!!
deranaloge
ParticipantHello,
me again 🙂As I live in Europe, I would have to add a checkbox. The user must actively tick this box. Only if he ticks it, I can add him to the newsletter.
Is there a possibility to add this?
Thank you very much in advance!
Cheers Harry
deranaloge
ParticipantHi,
thank you for your quick answer.
I will try it now 🙂Cheers
- This reply was modified 9 months, 2 weeks ago by
- AuthorPosts