AdWords
1.5K members online now
1.5K members online now
Use AdWords conversion tracking and reporting to measure your results. Have a question about Google Analytics? Post it here, on the Google Analytics Community!
Guide Me
star_border
Reply

&#160 tracking code error

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I'm trying to install the analytics code into a template/cms website.  I've tried copy/paste and typing the code manually.  After I hit save, "&#160" appears scattered throughout the code.  Anyone have some insight into how to prevent this from happening?  Here's how the code looks on the site:

 

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

1 Expert replyverified_user

Re: &#160 tracking code error

Top Contributor
# 2
Top Contributor

Hi mikeywon,

 

Sounds to me like you are using some sort of online HTML form to update your template and your CMS is translating or disabling your code. Most CMS systems will have a different method of inserting scripts on a page rather than simply pasting it into the page. Look through your system documentation and see if you can find something like that.

 

If not, if you can, download the template you wish to change. Add the script, save the file, then upload it to your server.

 

Best of Luck!

 

Pete

 

 

 

petebardo -- Deadhead doing AdWords