Okay
  Public Ticket #2542045
Contact Form
Closed

Comments

  •  1
    Weaddit started the conversation

    Good Morning,

    I need to install the analytics tracking code at https://www.xn--diseodecasas-dhb.com/contact/. I can't do it because when I submit the form, there isn`t a OK url.

    Can it be fixed in some way?

    Thank you

  • [deleted] replied

    Hi Weaddit,

    You can execute analytics code when contact form request is submitted, I have recoded a video to show you how this works:

    https://d.pr/v/RVQfrs

    So all you have to do is assign a Kalium JS hook for "Kalium.ContactForm.Sent" tag and it will work, here is the code you can add to your site (Theme Options > Other Settings >  Custom JavaScript > Footer JavaScript):

    <script>
    jQuery( document ).ready( function() {
        Kalium.Hooks.addAction( 'Kalium.ContactForm.Sent', function() {
            console.log( 'hey contact form request is submitted!' );
        } );
    } );
    </script>
    

  •   Weaddit replied privately
  •   Weaddit replied privately
  •  1
    Weaddit replied

    Perfect! It has been a great help. Thank you

  • [deleted] replied

    Hi Weaddit,

    I'm very happy that I helpedsmile.png

    Have a nice day!

    P.S: Enjoying our theme? Head over to your Downloads tab and give it 5 stars. We will love you forever.