Reply To: adding date from form to event for google tag manager

Home Forums Quform WordPress adding date from form to event for google tag manager Reply To: adding date from form to event for google tag manager

#37327
deranaloge
Participant

hi,
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 1 month ago by deranaloge.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy