Title: error validation
Last modified: April 11, 2020

---

# error validation

 *  Resolved [bvo](https://wordpress.org/support/users/bvo/)
 * (@bvo)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-validation-2/)
 * Hi,
    When running my site through the w3c validator, it results in 1 warming 
   and 2 errors The warning and 1 error seems to be related to the site kit plugin:
 * 1) error: Duplicate attribute async
    (this is in google tag manager)
 * 2) warming: he type attribute is unnecessary for JavaScript resources
    (also 
   tag manager)
 * What can I do about this?
 * Kind regards,
    Bas
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-validation-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-validation-2/#post-12667850)
 * [@bvo](https://wordpress.org/support/users/bvo/) thanks for your inquiry! I will
   confer with our team about this and get back to you as soon as possible.
 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-validation-2/#post-12669255)
 * [@bvo](https://wordpress.org/support/users/bvo/) quick question: are you using
   plugin(s) to optimize the site’s code?
 * If so, could you temporarily disable them and check your site in the validator
   again?
 * I’m not getting the same errors with Site Kit’s snippets on my test site, so 
   I’m curious if another plugin could be altering the site’s mark up and triggering
   these errors.
 * Thank you!
 *  Thread Starter [bvo](https://wordpress.org/support/users/bvo/)
 * (@bvo)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-validation-2/#post-12670052)
 * Hi Renee,
    Thanks for your reply! I do use a plugin to optimize: Autoptimize
 * When I disable it, the error is gone (!), the warning still exists. So maybe 
   that’s something you could take a look at for your next version? I’ll contact
   the Autoptimize author.
 * Thanks,
    Bas
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-validation-2/#post-12670071)
 * re. Autoptimize; check the setting under Autoptimize -> Extra -> “Async JavaScript”
   maybe?
 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-validation-2/#post-12674075)
 * [@bvo](https://wordpress.org/support/users/bvo/) thanks for the update! For the
   remaining warning, Site Kit’s snippet alone does not have the `type='text/javascript'`
   attribute that is being flagged so something else is adding this.
 * [@optimizingmatters](https://wordpress.org/support/users/optimizingmatters/) 
   thanks for checking additionally!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘error validation’ is closed to new replies.

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3141863)
 * [Site Kit by Google - Analytics, Search Console, AdSense, Speed](https://wordpress.org/plugins/google-site-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-site-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-site-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/google-site-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-site-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-site-kit/reviews/)

## Tags

 * [Validation error](https://wordpress.org/support/topic-tag/validation-error/)

 * 5 replies
 * 3 participants
 * Last reply from: [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/error-validation-2/#post-12674075)
 * Status: resolved