• Hello,
    I use CF7 on my website with several contact forms and I have a few things to figure out.
    The main use is inside a Scroll Triggered Box (when the user scrolls to the bottom the box appears or it is activated by clicking on the menu or on buttons inside our services pages).

    1) I tried to use the [__pageurl] tag to discover from which page the user sent the form, but it doesn’t show anything. How to make it work?

    2) I tried to add the code
    on_sent_ok: "$("#form-container").fadeOut();"
    as shown here in order to make the contact form fade and show just the success message, which at the moment is making the box to get bigger when the success message is show.
    The code seems not to be working (although a simple
    on_sent_ok: "alert('ok'); works.

    3) Same thing with:
    on_sent_ok: "__gaTracker('send', 'event', 'Contact Form Sidebar', 'Submit');" (to use for Yoast Google Analytics plugin) in Google Analyitics the contact form event doesn’t show up.

    4) How can I concatenate the several on_sent_ok? At the moment I’m testing with one only. I suppose this should be working, right?
    on_sent_ok: "__gaTracker('send', 'event', 'Contact Form Sidebar', 'Submit'); $("#form-container").fadeOut();"

    https://wordpress.org/plugins/contact-form-7/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Page URL for pop up contact form show only success message Google Analytics’ is closed to new replies.