many_tentacles
01-19-2009, 01:41 PM
Hi
Does anyone know how I can make this simple piece of code work?? It's to place google analytics code on my page so I can track external clicks but placing it in the response.write code causes some problems with quote marks.
<% IF Session("CCAccess") = "Y" THEN
response.write("<p><a href='http://www.mylink1.com/' onClick='javascript: pageTracker._trackPageview ('/tracking/menu/link1/');'>Link1</a></p>")
ELSE
response.write("<p><a href='http://www.mylink2.com' onClick='javascript: pageTracker._trackPageview ('/tracking/menu/link2/');'>Link2</a></p>")
END IF %>
Thanks
Does anyone know how I can make this simple piece of code work?? It's to place google analytics code on my page so I can track external clicks but placing it in the response.write code causes some problems with quote marks.
<% IF Session("CCAccess") = "Y" THEN
response.write("<p><a href='http://www.mylink1.com/' onClick='javascript: pageTracker._trackPageview ('/tracking/menu/link1/');'>Link1</a></p>")
ELSE
response.write("<p><a href='http://www.mylink2.com' onClick='javascript: pageTracker._trackPageview ('/tracking/menu/link2/');'>Link2</a></p>")
END IF %>
Thanks