• Resolved stefanmle

    (@stefanmle)


    Hi,

    I wondered if it is possible to track the event when the call me back form is submitted?

    I would like to ad a Google tag and trigger that when contact is made.

    Or another solution would be to go to a new page when the user submitted the form, like a thank you page.

    Is that possible?

    Reagrds

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor vadim8vz

    (@vadim8vz)

    Hi, yes plugin send event this is it:

    
    obj_form = {
    hitType: 'event',
    eventCategory: 'VDZ_Callback',
    eventAction: 'Send',
    eventLabel: 'Send_VDZ_Callback',
    }
    

    And you may redirect user after success with this code:

    
    (function ($) {
        $(document).on('ready', function () {
            $( document ).ajaxComplete(function( event, xhr, settings ) {
                if (( settings.url === window.vdz_cb.ajax_url ) && /action=vdz_cb_send/.test(settings.data)) {
                    window.location = '/MY_PAGE_AFTER_SEND/'
                }
            });
        });
    })(jQuery);
    
    Thread Starter stefanmle

    (@stefanmle)

    Hi,

    This one was set to resolved without I have gotten an answer. Is this correct?

    regards

    Plugin Contributor vadim8vz

    (@vadim8vz)

    Hi my answer has already been posted https://prnt.sc/vztckd
    Probably still moderated

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Event when closing the dialog/posting the form’ is closed to new replies.