Google analytics Code Placing in head tag in master page?

linoobsense

New Member
Here is the code in the head of my master page ...\[code\]<link rel="stylesheet" type="text/css" href="http://stackoverflow.com/questions/13803666/App_Themes/screen.css" /><link rel="shortcut icon" href="http://stackoverflow.com/images/favicon.ico"><script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXX-X']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = http://stackoverflow.com/questions/13803666/('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();</script>\[/code\]but when i see it in the browser view source ... it is showing it like this \[code\]<link rel="stylesheet" type="text/css" href="http://stackoverflow.com/questions/13803666/App_Themes/screen.css" /><link rel="shortcut icon" href="http://stackoverflow.com/images/favicon.ico"><script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXX-X']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = http://stackoverflow.com/questions/13803666/('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();</script> <link href="http://stackoverflow.com/questions/13803666/App_Themes/Site/style.css" type="text/css" rel="stylesheet" />\[/code\]You notice there is a theme rendering at the end App_Themes/Site/style.css before the tag ... please tell me how can i fix it ... I need google analytics code before the tag ... but this theme rendering at the end forbids me to achieve my goal ...
 
Back
Top