[Pro] Google analytics code showing

I just added some analytics code with code buddy to a site. It is viewable on the pages which is not a good thing. What did I do wrong.

http://www.kettlepondfarm.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ahmm - isn’t there a simple google analytics action out there where you simply put the UA number in it?

Honestly it is anyway not the GA code that is showed up there but something else that I personally can’t define.

It looks like chunk code simply thrown in. Does it disappear by removing the code-buddy action (never heard of btw.)?

Cheers

Thomas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

When I turn off the code buddy action it disappears. It is not the code for google. thanks.

I attached an image of code buddy. Why did it not work?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

As I said - never heard of it and never used it.

But I think it is for much more extended purposes than a simple Google Analytics code.

Use the inbuilt Google Analytic Action instead.

Cheers

Thomas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Looking at your name. Are you from Holland or Belgium?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Holland, but that was my gramps.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ah, I understand. Thanks.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Apart from the fact that you are linking to a RTF document (should only ever be plain text) the actual code can be better added using the GA action.

If you are going to link to a javascript file then it needs to be a javascript file.

You have

and in the .rtf you have

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-378614-8']);
  _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>

There shouldn’t be any script tags in there if you do it that way. Just

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-378614-8']);
  _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);
  })();

Much easier if you use Page>PageActions>Google Analytics and just add in your UA- site code

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options