I am using Contour and, through Razor, customizing the output of the fields. The problem, however, is that I can't seem to locate where the <form> tag is coded. I'd like to add custom markup to each form and its <form> tag for Google Analytics -- specifically, to add an onSubmit event for the forms. For example:
I thought it'd be in /Umbraco/Plugins/umbracoContour/Views, but none of the cshtml files seem to contain the <form> tag. Is this rendered in a dll? If so, any other way we can add that event to the form tag? Thanks in advance for any assistance!
Adding custom markup to <form>
Hello
I am using Contour and, through Razor, customizing the output of the fields. The problem, however, is that I can't seem to locate where the <form> tag is coded. I'd like to add custom markup to each form and its <form> tag for Google Analytics -- specifically, to add an onSubmit event for the forms. For example:
I thought it'd be in /Umbraco/Plugins/umbracoContour/Views, but none of the cshtml files seem to contain the <form> tag. Is this rendered in a dll? If so, any other way we can add that event to the form tag? Thanks in advance for any assistance!
Hi Phillip,
You want add the Google Analytics scripting code when the form has been submitted.
Take a look a the link below and see if you could use this solution.
http://our.umbraco.org/forum/umbraco-pro/contour/28090-Contour-and-Google-Analytics-Goals
Hope this can help you.
/Dennis
is working on a reply...