W3C home > Mailing lists > Public > www-validator@w3.org > June 2014

[VE][html5] Google Analytics Event Tracking List

From: Sabine Pietsch <pietsch@orpheus-it.com>
Date: Wed, 4 Jun 2014 12:13:18 +0200
To: "www-validator@w3.org" <www-validator@w3.org>
Message-ID: <03176B751CE3264EB1FA6937B50E12DB4C91BFF473@winxbede27.exchange.xchg>
Hi there.

I'm using the Google Analytics Event Tracking Code.

The Code is like this for example:
<a href="# " onClick="_gaq.push(['_trackEvent', 'Home_DE_2', 'click_on_Button', 'Free Download']);">
Download
   </a>
I'm using it as specified by Google but the W3C Validator says things like:
No space between attributes.
Quote ' in attribute name. Probable cause: Matching quote missing somewhere earlier.
Attribute _gaq.push(['_trackevent', is not serializable as XML 1.0.
Attribute _gaq.push(['_trackevent', not allowed on element a at this point.

Validating http://www.data-masking-tool.com/


Any ideas? Or is the Validator just not able to recognize things like this?

Thank you!

Sabine
Received on Wednesday, 4 June 2014 14:13:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:11 UTC