C
c676228
Hi all,
I put GA's tracking code in a html file called ga_track.html and include in
any *.asp file before the end of the </body>, see below:
<!--#Include Virtual="/TISMSDE/GA_track.html" -->
</body>
<!-- Google Analytic Tracking Code :GA_track.html-->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." :
"http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost +
"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2356948-8");
pageTracker._initData();
pageTracker._trackPageview();
</script>
everything looks Ok and these code could be seen when you view any page's
source code. but my question is how we should include this piece of code in
*.html
file. In what way we include this file(or *.js file), the code could be seen
when you open view source in browser instead of just one line code
<!--#Include Virtual="/TISMSDE/GA_track.html" -->
or <<script type="text/javascript" src="/tismsde/ga_track.js"></javascript>
since I am afaid of GA cannot work correctly without seeing the piece of
code directly in the browser.
Any recommendation?
I put GA's tracking code in a html file called ga_track.html and include in
any *.asp file before the end of the </body>, see below:
<!--#Include Virtual="/TISMSDE/GA_track.html" -->
</body>
<!-- Google Analytic Tracking Code :GA_track.html-->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." :
"http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost +
"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2356948-8");
pageTracker._initData();
pageTracker._trackPageview();
</script>
everything looks Ok and these code could be seen when you view any page's
source code. but my question is how we should include this piece of code in
*.html
file. In what way we include this file(or *.js file), the code could be seen
when you open view source in browser instead of just one line code
<!--#Include Virtual="/TISMSDE/GA_track.html" -->
or <<script type="text/javascript" src="/tismsde/ga_track.js"></javascript>
since I am afaid of GA cannot work correctly without seeing the piece of
code directly in the browser.
Any recommendation?