-
1. Getting Google Analytics to work
mp911de Apr 26, 2011 12:08 AM (in response to fericit.bostan)there is a missing semicolon after
var gaRootDomain = '<h:outputText value="#{gaRootDomain}" />'
-
2. Re: Getting Google Analytics to work
fericit.bostan Apr 26, 2011 7:42 PM (in response to mp911de)Good catch. I added the ; but still google analytics does not seem to load.
Here is what my javascript looks like after the page loads:
<script type="text/javascript">
//<![CDATA[
var gaAccountID = 'UA-1868359-1';
var gaRootDomain = '.intraxusa.com'
var gaApplicantConversionID = '1069446817';
var gaApplicantConversionLabel = 'Er2rCKO8QxCh7fn9Aw';
var documentDomain = 'intraxusa.com';
var _gaq = _gaq || [];
_gaq.push(['_setAccount', gaAccountID]);
_gaq.push(['_setDomainName', gaRootDomain]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('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>
-
3. Getting Google Analytics to work
fericit.bostan May 12, 2011 12:44 PM (in response to fericit.bostan)Just to bring closure to this issue, it seems that it was working all along. I was basing my assumption of it not working on the use of a plugin named ghostery, which shows all tracking software on a page. It showed no results on my page when I rendered it in Safari, but when I launched my page in Chrome or FireFox it did show that my page was correctly tracking. I'm not certain for the
discrepancy, but it appears that I had no issue after all.
Thanks for enduring my ordeal and assisting me.