Your Time:
Our Time:
← Back to discussions

✓ Goal tracking via Google Analytics

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket
Resolved
Posted in: Storeup

This topic has 4 replies, 2 voices, and was last updated 9 years, 3 months ago by Fem.

  • 2017-07-26 at 3:40 pm
    Support Expired
    #21284
    TheGeekFromUK
    Participant
    • Topics: 1
    • Replies: 2
    • Total posts: 3
    • Post count: 2

    Hi,

    I am trying to set up goal tracking on the booking form submissions. I use Google Tag Manager to track events. I used Contact Form 7 on the contact page and it tracks the events and converts them to goals in analytics. However, I cannot set goal tracking for your booking forms. Is there a way to do it?

    Once we can track the form submissions, then it will be easy for us to see which campaigns work best, saving us $$$.

    2017-07-26 at 5:54 pm
    #21285
    Fem
    Keymaster
    • Topics: 2
    • Replies: 8473
    • Total posts: 8475
    • Post count: 6003

    If you want to set up the goal tracking in booking form page, then this is the template file template-booking.php, you can edit this file to set up the goal tracking. We don’t know exactly about the goal tracking plugin.

    2017-07-26 at 6:16 pm
    Support Expired
    #21287
    TheGeekFromUK
    Participant
    • Topics: 1
    • Replies: 2
    • Total posts: 3
    • Post count: 2

    I am trying to implement a custom dataLayer.push() into the callback function which is invoked upon a successful submission. The piece of code could be something like:

    function onFormSuccess(event) {
    window.dataLayer = window.dataLayer || [];
    window.dataLayer.push({
    ‘event’ : ‘formSubmissionSuccess’,
    ‘formId’ : ‘contactForm’
    });
    // Rest of the success callback code
    }

    Where do i add this?

    2017-07-26 at 7:09 pm
    Support Expired
    #21288
    TheGeekFromUK
    Participant
    • Topics: 1
    • Replies: 2
    • Total posts: 3
    • Post count: 2

    Don’t worry, I found the solution here:

    2017-07-27 at 10:30 am
    #21291
    Fem
    Keymaster
    • Topics: 2
    • Replies: 8473
    • Total posts: 8475
    • Post count: 6003

    Glad that you got resolved it. Kindly share us the solution here, so that it might be helpful for others too.

You must be logged in to reply to this topic.