Considering that I started a new job that requires the use of Umbraco and ASP.NET - platforms / languages ββthat I have been working with for only 2 days and I get a complete noob, I have a request regarding the insertion of Google Analytics event tracking code in a string the .ascx file.
Like this: I turned around on a specific line into which I need to insert the tracking code .gaq ; this is an onclick handler that corresponds to the submit button in the contact form. Line:
<asp:LinkButton runat="server" ID="Page3NextButton" OnClick="Page3NextButton_Click" CausesValidation="true" CssClass="btnSubmit floatRight"> <span>Submit</span> </asp:LinkButton>
I would like to add an event tracker to this OnClick property in the form of "_gaq.push(['_trackEvent', 'Volunteer', 'Submit', 'Volunteer Signup'])" and configure the corresponding event menu in GA. The only thing I donβt know how to add code to the existing OnClick setting is not the case of separating the two with a colon, as I could do with JavaScript elements in regular HTML (for example, onclick="blah(); dah();")
Can anyone tell me how to install two event handlers in the same OnClick property in ASP.NET ? If I sound gloomy, because this language is completely insignificant for me.
Greetings.
source share