Title: AMP Validation errors
Last modified: June 13, 2022

---

# AMP Validation errors

 *  [bestlaptopsexpert](https://wordpress.org/support/users/bestlaptopsexpert/)
 * (@bestlaptopsexpert)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/amp-validation-errors-19/)
 * Hi,
    I have activated your SEOPRESS Plugin on my site where AMP plugin was already
   activated. It is showing AMP Validation errors. The AMP Validation data is given
   below:
 *     ```
       [
           {
               "url": "https://bestlaptopsexpert.com/",
               "type": "is_home",
               "label": "Homepage",
               "amp_url": "https://bestlaptopsexpert.com/",
               "validation_errors": [
                   {
                       "code": "CUSTOM_EXTERNAL_SCRIPT",
                       "node_name": "script",
                       "parent_name": "head",
                       "type": "js_error",
                       "node_attributes": {
                           "async": "",
                           "src": "https://www.googletagmanager.com/gtag/js?id=UA-141207840-2"
                       },
                       "node_type": 1,
                       "sandboxing_level": 2,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options-google-analytics.php",
                               "line": 822,
                               "function": "seopress_google_analytics_js",
                               "hook": "seopress_google_analytics_html",
                               "priority": 10
                           }
                       ]
                   },
                   {
                       "code": "CUSTOM_INLINE_SCRIPT",
                       "node_name": "script",
                       "parent_name": "head",
                       "type": "js_error",
                       "node_attributes": [],
                       "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}gtag(__SINGLE_QUOTED_STRING__, new Date());\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__ , {__SINGLE_QUOTED_STRING__: false,});\n\n",
                       "node_type": 1,
                       "sandboxing_level": 2,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options-google-analytics.php",
                               "line": 822,
                               "function": "seopress_google_analytics_js",
                               "hook": "seopress_google_analytics_html",
                               "priority": 10
                           }
                       ]
                   }
               ],
               "stale": false,
               "error": false,
               "validated_url_post": {
                   "id": 4501,
                   "edit_link": "https://bestlaptopsexpert.com/wp-admin/post.php?post=4501&action=edit"
               }
           },
           {
               "url": "https://bestlaptopsexpert.com/why-is-my-mouse-not-working-on-chromebook/",
               "type": "is_singular[post]",
               "label": "Post",
               "amp_url": "https://bestlaptopsexpert.com/why-is-my-mouse-not-working-on-chromebook/",
               "validation_errors": [
                   {
                       "code": "CUSTOM_EXTERNAL_SCRIPT",
                       "node_name": "script",
                       "parent_name": "head",
                       "type": "js_error",
                       "node_attributes": {
                           "async": "",
                           "src": "https://www.googletagmanager.com/gtag/js?id=UA-141207840-2"
                       },
                       "node_type": 1,
                       "sandboxing_level": 2,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options-google-analytics.php",
                               "line": 822,
                               "function": "seopress_google_analytics_js",
                               "hook": "seopress_google_analytics_html",
                               "priority": 10
                           }
                       ]
                   },
                   {
                       "code": "CUSTOM_INLINE_SCRIPT",
                       "node_name": "script",
                       "parent_name": "head",
                       "type": "js_error",
                       "node_attributes": [],
                       "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}gtag(__SINGLE_QUOTED_STRING__, new Date());\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__ , {__SINGLE_QUOTED_STRING__: false,});\n\n",
                       "node_type": 1,
                       "sandboxing_level": 2,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options-google-analytics.php",
                               "line": 822,
                               "function": "seopress_google_analytics_js",
                               "hook": "seopress_google_analytics_html",
                               "priority": 10
                           }
                       ]
                   }
               ],
               "stale": false,
               "error": false,
               "validated_url_post": {
                   "id": 4598,
                   "edit_link": "https://bestlaptopsexpert.com/wp-admin/post.php?post=4598&action=edit"
               }
           },
           {
               "url": "https://bestlaptopsexpert.com/home-page/",
               "type": "is_singular[page]",
               "label": "Page",
               "amp_url": "https://bestlaptopsexpert.com/home-page/",
               "validation_errors": [
                   {
                       "code": "CUSTOM_EXTERNAL_SCRIPT",
                       "node_name": "script",
                       "parent_name": "head",
                       "type": "js_error",
                       "node_attributes": {
                           "async": "",
                           "src": "https://www.googletagmanager.com/gtag/js?id=UA-141207840-2"
                       },
                       "node_type": 1,
                       "sandboxing_level": 2,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options-google-analytics.php",
                               "line": 822,
                               "function": "seopress_google_analytics_js",
                               "hook": "seopress_google_analytics_html",
                               "priority": 10
                           }
                       ]
                   },
                   {
                       "code": "CUSTOM_INLINE_SCRIPT",
                       "node_name": "script",
                       "parent_name": "head",
                       "type": "js_error",
                       "node_attributes": [],
                       "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}gtag(__SINGLE_QUOTED_STRING__, new Date());\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__ , {__SINGLE_QUOTED_STRING__: false,});\n\n",
                       "node_type": 1,
                       "sandboxing_level": 2,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options-google-analytics.php",
                               "line": 822,
                               "function": "seopress_google_analytics_js",
                               "hook": "seopress_google_analytics_html",
                               "priority": 10
                           }
                       ]
                   }
               ],
               "stale": false,
               "error": false,
               "validated_url_post": {
                   "id": 4502,
                   "edit_link": "https://bestlaptopsexpert.com/wp-admin/post.php?post=4502&action=edit"
               }
           },
           {
               "url": "https://bestlaptopsexpert.com/buyers-guide/",
               "type": "is_tax[category]",
               "label": "Category",
               "amp_url": "https://bestlaptopsexpert.com/buyers-guide/",
               "validation_errors": [
                   {
                       "code": "CUSTOM_EXTERNAL_SCRIPT",
                       "node_name": "script",
                       "parent_name": "head",
                       "type": "js_error",
                       "node_attributes": {
                           "async": "",
                           "src": "https://www.googletagmanager.com/gtag/js?id=UA-141207840-2"
                       },
                       "node_type": 1,
                       "sandboxing_level": 2,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options-google-analytics.php",
                               "line": 822,
                               "function": "seopress_google_analytics_js",
                               "hook": "seopress_google_analytics_html",
                               "priority": 10
                           }
                       ]
                   },
                   {
                       "code": "CUSTOM_INLINE_SCRIPT",
                       "node_name": "script",
                       "parent_name": "head",
                       "type": "js_error",
                       "node_attributes": [],
                       "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}gtag(__SINGLE_QUOTED_STRING__, new Date());\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__ , {__SINGLE_QUOTED_STRING__: false,});\n\n",
                       "node_type": 1,
                       "sandboxing_level": 2,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options-google-analytics.php",
                               "line": 822,
                               "function": "seopress_google_analytics_js",
                               "hook": "seopress_google_analytics_html",
                               "priority": 10
                           }
                       ]
                   }
               ],
               "stale": false,
               "error": false,
               "validated_url_post": {
                   "id": 4506,
                   "edit_link": "https://bestlaptopsexpert.com/wp-admin/post.php?post=4506&action=edit"
               }
           },
           {
               "url": "https://bestlaptopsexpert.com/2022/",
               "type": "is_date",
               "label": "Date Archive",
               "amp_url": "https://bestlaptopsexpert.com/2022/",
               "validation_errors": [
                   {
                       "code": "CUSTOM_EXTERNAL_SCRIPT",
                       "node_name": "script",
                       "parent_name": "head",
                       "type": "js_error",
                       "node_attributes": {
                           "async": "",
                           "src": "https://www.googletagmanager.com/gtag/js?id=UA-141207840-2"
                       },
                       "node_type": 1,
                       "sandboxing_level": 2,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options-google-analytics.php",
                               "line": 822,
                               "function": "seopress_google_analytics_js",
                               "hook": "seopress_google_analytics_html",
                               "priority": 10
                           }
                       ]
                   },
                   {
                       "code": "CUSTOM_INLINE_SCRIPT",
                       "node_name": "script",
                       "parent_name": "head",
                       "type": "js_error",
                       "node_attributes": [],
                       "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}gtag(__SINGLE_QUOTED_STRING__, new Date());\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__ , {__SINGLE_QUOTED_STRING__: false,});\n\n",
                       "node_type": 1,
                       "sandboxing_level": 2,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options-google-analytics.php",
                               "line": 822,
                               "function": "seopress_google_analytics_js",
                               "hook": "seopress_google_analytics_html",
                               "priority": 10
                           }
                       ]
                   }
               ],
               "stale": false,
               "error": false,
               "validated_url_post": {
                   "id": 4504,
                   "edit_link": "https://bestlaptopsexpert.com/wp-admin/post.php?post=4504&action=edit"
               }
           },
           {
               "url": "https://bestlaptopsexpert.com/?s=example",
               "type": "is_search",
               "label": "Search Results",
               "amp_url": "https://bestlaptopsexpert.com/?s=example",
               "validation_errors": [
                   {
                       "code": "CUSTOM_EXTERNAL_SCRIPT",
                       "node_name": "script",
                       "parent_name": "head",
                       "type": "js_error",
                       "node_attributes": {
                           "async": "",
                           "src": "https://www.googletagmanager.com/gtag/js?id=UA-141207840-2"
                       },
                       "node_type": 1,
                       "sandboxing_level": 2,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options-google-analytics.php",
                               "line": 822,
                               "function": "seopress_google_analytics_js",
                               "hook": "seopress_google_analytics_html",
                               "priority": 10
                           }
                       ]
                   },
                   {
                       "code": "CUSTOM_INLINE_SCRIPT",
                       "node_name": "script",
                       "parent_name": "head",
                       "type": "js_error",
                       "node_attributes": [],
                       "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}gtag(__SINGLE_QUOTED_STRING__, new Date());\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__ , {__SINGLE_QUOTED_STRING__: false,});\n\n",
                       "node_type": 1,
                       "sandboxing_level": 2,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options-google-analytics.php",
                               "line": 822,
                               "function": "seopress_google_analytics_js",
                               "hook": "seopress_google_analytics_html",
                               "priority": 10
                           }
                       ]
                   }
               ],
               "stale": false,
               "error": false,
               "validated_url_post": {
                   "id": 4505,
                   "edit_link": "https://bestlaptopsexpert.com/wp-admin/post.php?post=4505&action=edit"
               }
           }
       ]
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famp-validation-errors-19%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Benjamin Denis](https://wordpress.org/support/users/rainbowgeek/)
 * (@rainbowgeek)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/amp-validation-errors-19/#post-15755653)
 * Hi,
 * did you try to use the Transitional mode from AMP Settings?
 * Which settings are you using please?
 * Thx
 *  [Clemzy](https://wordpress.org/support/users/clemzy/)
 * (@clemzy)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/amp-validation-errors-19/#post-15909495)
 * I got the same error, and I am using SEOPress.. I am using Reader mode for the
   AMP default Twenty Twenty as mobile theme
 *     ```
       [
           {
               "url": "https://latestngnews.com/heartwarming-moment-nigerian-man-surprised-his-mother-in-a-lagos-market-with-cake-and-music-on-her-birthdayvideo/",
               "type": "is_singular[post]",
               "label": "Post",
               "amp_url": "https://latestngnews.com/heartwarming-moment-nigerian-man-surprised-his-mother-in-a-lagos-market-with-cake-and-music-on-her-birthdayvideo/amp/",
               "validation_errors": [
                   {
                       "node_name": "script",
                       "parent_name": "head",
                       "code": "DISALLOWED_TAG",
                       "type": "js_error",
                       "node_attributes": {
                           "src": "https://latestngnews.com/wp-includes/js/jquery/jquery.min.js?ver=__normalized__",
                           "id": "jquery-core-js"
                       },
                       "node_type": 1,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options.php",
                               "line": 320,
                               "function": "seopress_google_analytics_cookies_js",
                               "hook": "wp_enqueue_scripts",
                               "priority": 20,
                               "dependency_type": "script",
                               "handle": "seopress-cookies-ajax",
                               "dependency_handle": "jquery-core"
                           }
                       ]
                   },
                   {
                       "node_name": "script",
                       "parent_name": "head",
                       "code": "DISALLOWED_TAG",
                       "type": "js_error",
                       "node_attributes": {
                           "src": "https://latestngnews.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=__normalized__",
                           "id": "jquery-migrate-js"
                       },
                       "node_type": 1,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options.php",
                               "line": 320,
                               "function": "seopress_google_analytics_cookies_js",
                               "hook": "wp_enqueue_scripts",
                               "priority": 20,
                               "dependency_type": "script",
                               "handle": "seopress-cookies-ajax",
                               "dependency_handle": "jquery-migrate"
                           }
                       ]
                   },
                   {
                       "node_name": "script",
                       "parent_name": "body",
                       "code": "DISALLOWED_TAG",
                       "type": "js_error",
                       "node_attributes": {
                           "src": "https://latestngnews.com/wp-content/plugins/wp-seopress/assets/js/seopress-cookies.min.js?ver=__normalized__",
                           "id": "seopress-cookies-js"
                       },
                       "node_type": 1,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options.php",
                               "line": 320,
                               "function": "seopress_google_analytics_cookies_js",
                               "hook": "wp_enqueue_scripts",
                               "priority": 20,
                               "dependency_type": "script",
                               "handle": "seopress-cookies-ajax",
                               "dependency_handle": "seopress-cookies"
                           },
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options.php",
                               "line": 320,
                               "function": "seopress_google_analytics_cookies_js",
                               "hook": "wp_enqueue_scripts",
                               "priority": 20,
                               "dependency_type": "script",
                               "handle": "seopress-cookies"
                           }
                       ]
                   },
                   {
                       "node_name": "script",
                       "parent_name": "body",
                       "code": "DISALLOWED_TAG",
                       "type": "js_error",
                       "node_attributes": {
                           "id": "seopress-cookies-ajax-js-extra"
                       },
                       "text": "\nvar seopressAjaxGAUserConsent = {__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__};\n",
                       "node_type": 1,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options.php",
                               "line": 320,
                               "function": "seopress_google_analytics_cookies_js",
                               "hook": "wp_enqueue_scripts",
                               "priority": 20,
                               "dependency_type": "script",
                               "extra_key": "data",
                               "text": "var seopressAjaxGAUserConsent = {\"seopress_nonce\":\"75b2c31fc6\",\"seopress_cookies_user_consent\":\"https:\\/\\/latestngnews.com\\/wp-admin\\/admin-ajax.php\",\"seopress_cookies_expiration_days\":\"30\"};",
                               "handle": "seopress-cookies-ajax"
                           }
                       ]
                   },
                   {
                       "node_name": "script",
                       "parent_name": "body",
                       "code": "DISALLOWED_TAG",
                       "type": "js_error",
                       "node_attributes": {
                           "src": "https://latestngnews.com/wp-content/plugins/wp-seopress/assets/js/seopress-cookies-ajax.min.js?ver=__normalized__",
                           "id": "seopress-cookies-ajax-js"
                       },
                       "node_type": 1,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "wp-seopress",
                               "file": "inc/functions/options.php",
                               "line": 320,
                               "function": "seopress_google_analytics_cookies_js",
                               "hook": "wp_enqueue_scripts",
                               "priority": 20,
                               "dependency_type": "script",
                               "handle": "seopress-cookies-ajax"
                           }
                       ]
                   }
               ],
               "stale": true
           }
       ]
       ```
   
    -  This reply was modified 3 years, 9 months ago by [Clemzy](https://wordpress.org/support/users/clemzy/).
    -  This reply was modified 3 years, 9 months ago by [Clemzy](https://wordpress.org/support/users/clemzy/).
    -  This reply was modified 3 years, 9 months ago by [Clemzy](https://wordpress.org/support/users/clemzy/).
 *  Plugin Author [Benjamin Denis](https://wordpress.org/support/users/rainbowgeek/)
 * (@rainbowgeek)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/amp-validation-errors-19/#post-15910756)
 * [@clemzy](https://wordpress.org/support/users/clemzy/) we’ll take care of this
   with our next update (ETA: next week, first iteration).

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

The topic ‘AMP Validation errors’ is closed to new replies.

 * ![](https://ps.w.org/wp-seopress/assets/icon-128x128.gif?rev=3158903)
 * [SEOPress - AI SEO Plugin & On-site SEO](https://wordpress.org/plugins/wp-seopress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-seopress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-seopress/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-seopress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-seopress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-seopress/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Benjamin Denis](https://wordpress.org/support/users/rainbowgeek/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/amp-validation-errors-19/#post-15910756)
 * Status: not resolved