ASPX templates
Version 5.x > ASPX templates > How to integrate google analytics with Version 5.0 View modes: 
User avatar
Member
Member
hemanthray-gmail - 10/18/2010 9:58:40 AM
   
How to integrate google analytics with Version 5.0
Hi all, I am trying to figure out how google analytics is handled in Kentico. it would be great if someone can help me out how to handle this with Kentico

Thanks
Hemanth

User avatar
Member
Member
eric.rovtar-hudsonchapel - 10/18/2010 10:57:04 PM
   
RE:How to integrate google analytics with Version 5.0
The easiest way is to just paste the Google Analytics code into the head section of your site.

Alternatively, you can use the Google Analytics Web Part. Look for the example in the CorporateASPX/WebParts demos. And look in the documentation.

I'd recommend the first option though.

User avatar
Member
Member
hemanthray-gmail - 11/15/2010 12:03:28 PM
   
RE:How to integrate google analytics with Version 5.0
Thanks For the reply. I did do this on the head tag of master. But i dont know how to check the reports. CAn please guide me how to get that

<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">
try {
var pageTracker = _gat._getTracker("UA-17476616-1");
pageTracker._trackPageview();
} catch(err) {}</script>

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 11/16/2010 6:35:37 AM
   
RE:How to integrate google analytics with Version 5.0
Hello,

If I understand you correctly, you can check appropriate analytics records within your Google analytics account on http://google.com. This is not integrated in Kentico CMS itself.

Best regards
Ondrej Vasil