[VE][html5] Google Analytics Event Tracking List

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