Okay
  Public Ticket #2038354
Tracking Google Analytics
Closed

Comments

  • ankouts started the conversation

    Hello, How can I track into Google Analytics when a guest pressed successfully the BOOK button from the Booking Page?

  •  521
    Vasilis replied

    Hi there,

    you will need to redirect your Customers to a thank you page, and add your analytics code there.

    So open template-booking.php and add this

    <script>
                        window.location.href = 'your-url-here';
                    </script>
    


    after this


    <p id="formsuccess"><i class="fa fa-check"></i> <?php _e( 'Your booking request has been sent. We will contact you as soon as possible.', 'ci_theme' ); ?></p>
    

    If you decide to proceed with this modification I would suggest you create a child theme, copy over the files you are editing and make the modifications there. This will allow your changes to survive future theme updates. If you directly edit the theme’s files, all changes will be lost once you update.

    Have a look at this guide to learn more about child themes and how to create one www.cssigniter.com/ignite/beginners-guide-child-themes/

    Let me know if you need additional help on this.

  • ankouts replied

    Thank you for the reply,

    Then maybe I was thinking to use the Google Tag Manager.

  •  521
    Vasilis replied

    Hi there,

    Thats great, let me know how I can help out more.