Jump to content

Google Tracking Code question


gazfocus

Recommended Posts

I'm working on a website and it has some Google tracking code in the html. However, when I try to validate the page with the W3 Validator, it throws up errors with the tracking code.

 

I've read somewhere that the W3 Validator won't throw up the errors if the code is either put inside comment tags or in an external .js file.

 

What I'm wondering is, will the tracking code still work if I use either of these methods?

 

Thanks in advance

Link to comment
Share on other sites

I'm thinking it must be an error somewhere else in your code that has cascaded down to the google code. I've not ever seen Google provide invalid code for their applications, though I suppose it theoretically could happen.

Hi, Thanks for your post, however, the errors are definately within the google tracking code. The errors relate to certain functions within the code not being defined. such as ('<sc'+'ript. It doesn't understand the <sc' and thinks it should be 'script'.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.