简体   繁体   中英

JsHint error with analytics

I am getting a bunch of errors on JsHint regarding my Google Analytics snippet.

How can I isolate this code so that JsHint ignores it? I guess this should be ignored by JsHint.

From the documentation :

// Code here will be linted with JSHint.
/* jshint ignore:start */
// Code here will be linted with ignored by JSHint.
/* jshint ignore:end */

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM