I need help finding a solution for this issue.
My goal is to track an event in Google Analytics through an onclick event, but I am struggling with passing a dynamic variable to the URL field. Below is the code snippet:
<asp:hyperlink ID="Hyperlink2" runat="server" Font-Size="8pt"
NavigateUrl='<%# Eval("URL") %>'
Target="_blank" CssClass="flatorange"
style="margin-bottom:10px;"
onclick="ga('send', 'event', '<%# Eval("URL") %>');">Apply Now</asp:hyperlink>
<br />