-
AuthorPosts
-
February 4th, 2014 at 21:37 #21534ian
Hi,
I love this theme and it’s flexibility!
However, I have added google analytics code to the website, and followed the instructions in the theme settings (and on the support forums here) to add the code to the misc javascript section. The code appears in the html, but it is not being detected by google.The code is preceded by a javascript var that I didn’t add “var cryout_global_content_width = 900;”
Could this be affecting my analytics code?Also, at the top of the <head> tag, there is also google analytics code added, is this part of the theme (I didn’t add it, and haven’t installed any plugins). This code is always generated
“<script type=”text/javascript”>
var _gaq = _gaq || [];
_gaq.push([‘_setAccount’, ”], [‘_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>”February 4th, 2014 at 23:21 #21537ianof course, it spontaniously magically started working. thanks for your help!
May 19th, 2014 at 17:45 #25452Gerry O’HaraHi,
I’m having the same problem as Ian — I added the Google Analytics code to each page of the site (Parabola) but the site is not recognized by GA (a GA account was properly set up first). So then I also added the code to the header.php right before the last </head> but still not recognized by GA.
Any help you can provide is appreciated!
Gerry
May 20th, 2014 at 14:23 #25456WaltAre you expecting instant results? If so, that’s not gonna happen. It takes at least 24 hours for everything to take effect.
June 12th, 2014 at 10:32 #25740ZedCryout Creations mastermindWhen pasting custom JS, make sure to not include the opening/closing
<script>
tags.- This reply was modified 10 years ago by Zed.
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic. -
AuthorPosts
The topic ‘Analytics code not being detected by google’ is closed to new replies.