Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Marty 7 posts 52 karma points
    Jan 27, 2012 @ 11:05
    Marty
    0

    Contour and Google Analytics Goals

    Hi all,

    I am currently trying to add Google Analytics goals to my Contour forms. I've had a search on the web and on the forums and I can't really find any definitve answer on how to set it up. I can't even find any sort of official documentation on it, even though the Contour information page states 'enter goals from Google Analytics and much more'.

    My forms are currently set up to load a message when a user successfully fills in a form and doesn't redirect to a thankyou page. I would like to keep it this way if possible.

    Any help would be greatly appreciated.

    Thanks,
    Marty

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jan 27, 2012 @ 12:35
    Ismail Mayat
    1

    Marty,

    With regards to analytics and form actions tunneling thought you needed to have a separate thank you page? I have done it in the past with separate thank you page and have put the code on there and that has worked.

    Regards

    Ismail

  • Hamish 96 posts 154 karma points
    Oct 03, 2013 @ 23:31
    Hamish
    1

    I too am looking for the same thing, I'm yet to action the following but this seems like a really tidy solution rather than redirecting a user to another page that can be found and viewed without acutally submitting a form

    You could add a script with the success message, to track the submission:
    /umbraco/plugins/umbracoContour/Views/Forms/Form.cshtml

    @if (Model.SubmitHandled)
    {
        <p class="contourMessageOnSubmit">@Model.MessageOnSubmit</p>
    
        <script>
            ADD EVENT TRACKING HERE
        </script>
    }

    The script should fire of an tracking event as described here:
    https://developers.google.com/analytics/devguides/collection/analyticsjs/events 

    So as an example you could use the following values in the event

    • Category: Contour Form
    • Action: Submitted
    • Label: @Model.FormName or the @Model.FormId

    And then setup a goal to look for those event values
    Let me know if this works for ya :)
     
     
     
     
     
     
     
Please Sign in or register to post replies

Write your reply to:

Draft