Where to Place Google Analytics Code?
Where should I place my script code for Google Analytics to begin tracking the number of views each of my applications is receiving?
Should it be somewhere in the index.html of each site I have?
Any tips are appreciated.
-
Hey Craig,
In Silverlight I put my code in the viewer.html located at C:\inetpub\wwwroot\YOUR SILVERLIGHT FOLDER after the last </script>, before the </head>.
In HTML5 i put the code in the index.html located at C:\inetpub\wwwroot\YOUR HTML5 FOLDER after the last </script>, before the </head>.
0 -
Great, Thanks!
0 -
One thing I haven't been able to figure out is why Analytics doesn't track my secured sites. Or perhaps it does and I just don't know how to extract that info.
0 -
How have people handled multiple business sites that use the same index.html file as far as google analytics code is concerned. How do you instantiate the code to track two sites separately
thx
0 -
Hey Kevin,
Google Analytics has the ability to track/monitor individual pages and provide general information for each. Check out the "All Pages" or "Landing pages" under Behavior/Site Content.
Hope this helps.
0
Please sign in to leave a comment.
Comments
5 comments