Title: `Failed to execute &#8216;createElement&#8217; on &#8216;Document&#8217; error message
Last modified: February 2, 2021

---

# `Failed to execute ‘createElement’ on ‘Document’ error message

 *  Resolved [Angela Ollison](https://wordpress.org/support/users/s-234/)
 * (@s-234)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/failed-to-execute-createelement-on-document-error-message/)
 * Hello, while logged into my website, hovering over the “G Site Kit” link in the
   black WordPress admin bar at the top of the page, the following shows in the 
   fly out box:
 * Site Kit Encountered an Error:
 *     ```
       Failed to execute 'createElement' on 'Document': The tag name provided ('core/location') is not a valid name.
   
           in core/location
           in div
           in withData(a)
           in a
           in Unknown
           in Unknown
           in WithFilters(a)
           in div
           in div
           in div
           in div
           in r
           in Unknown
           in Unknown
           in a
           in e
       ```
   
    -  This topic was modified 5 years, 4 months ago by [Angela Ollison](https://wordpress.org/support/users/s-234/).

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

 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/failed-to-execute-createelement-on-document-error-message/#post-13996034)
 * Thanks for reaching out and sharing our experience. This is indeed unusual, hopefully
   we can determine the cause.
 * So we can try and understand your setup better please share the following:
    1. Does this occur consistently, and if so when did this start occurring?
    2. Does this occur when checking your site from a [browser incognito window](https://i.imgur.com/ALzgiHp.png)?
    3. Can you please share your Site Health information privately via [this form](https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/)?
 *  Thread Starter [Angela Ollison](https://wordpress.org/support/users/s-234/)
 * (@s-234)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/failed-to-execute-createelement-on-document-error-message/#post-13997599)
 * James, I did some digging and the closest thing I could find resembling this 
   error is a typescript issue on StackOverflow.
 * To answer your questions:
    1. Yes; I launched my site on 01/31/2021, and connected
   all of the Google Site Kit parameters then. I didn’t notice the issue until later
   in the evening when testing on the front end – as this occurs on the black admin
   bar on the front end while logged in. This was after the most recent plugin update
   on (I believe) the same day – 01/31/2021.
 * 2. Since I am required to be logged in in order to view this asset (it’s on the
   WordPress admin bar while logged in as an admin), I am going to guess that I 
   won’t see this issue while in an incognito window – which would defeat the purpose
   of the plugin…
 * 3. Done.
 * 4. Bonus. I have other, older projects on different webhosts using other domains;
   I will try installing Google Site kit on those to see if I can replicate the 
   issue…
 * I wonder if one of the tools I’m using to keep my site running fast (aka: render
   blocking scripts) is causing some of the JavaScript to not render properly, which
   may cause it to fail in this way.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/failed-to-execute-createelement-on-document-error-message/#post-13997792)
 * Many thanks for your thorough update. I’ll go ahead and create a GitHub isssue
   so we can investigate this further. In the meantime please do share whether you’re
   able to recreate this on another site.
 * > 2. Since I am required to be logged in in order to view this asset (it’s on
   > the WordPress admin bar while logged in as an admin), I am going to guess that
   > I won’t see this issue while in an incognito window – which would defeat the
   > purpose of the plugin…
 * It may be worth checking from a browser incognito window. Besides browser caching
   there can be browser extensions that can result in such behavior. If you keep
   your Chrome developer tools open we can then add any additional information to
   the GitHub issue.
 * Another troubleshooting step you may wish to undertake is to use the Health Check
   and troubleshooting plugin, which can help rule out plugin or theme conflicts.
   See steps below:
    1. Login to your site from an incognito window
    2. Install and activate the [Health Check & Troubleshooting](https://wordpress.org/plugins/health-check/)
       plugin.
    3. Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
    4. From the same screen click on the “Available Plugins” tab at the top right and
       then click on the “Enable” option next to “Site Kit by Google”
    5. Attempt to setup Site Kit once more
 * You can [exit troubleshooting](https://i.imgur.com/Z4b1bk0.jpg) mode afterwards.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/failed-to-execute-createelement-on-document-error-message/#post-13997861)
 * Just to keep you updated I’ve created the following GitHub issue:
    [https://github.com/google/site-kit-wp/issues/2753](https://github.com/google/site-kit-wp/issues/2753)
 * Along with the text you’re performing if you could provide a screenshot or video
   recording of this behavior I can add it to the issue. You can use a service such
   as [Loom](https://www.loom.com/) or [RecordIt](https://www.recordit.co/) to share
   a video. You can share privately if preferred using the same form previously 
   used.
 * I also noticed some significant page optimisations on your site, so be sure to
   check for the same issue using the Health Check and Troubleshooting plugin. Let
   me know if you have any questions on this.
 *  Thread Starter [Angela Ollison](https://wordpress.org/support/users/s-234/)
 * (@s-234)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/failed-to-execute-createelement-on-document-error-message/#post-13998070)
 * Hi, I’ve added a video capture to the GitHub issue.
    I’m “at work” now – so I’ll
   dig through some of the other items as I have time throughout the day today.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/failed-to-execute-createelement-on-document-error-message/#post-13998370)
 * Appreciate you going to the time to create the video. Please do share whether
   you encounter the same using the Health Check & Troubleshooting plugin, once 
   time allows.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/failed-to-execute-createelement-on-document-error-message/#post-14003667)
 * [@s-234](https://wordpress.org/support/users/s-234/) I’ll close this topic with
   the issue no longer occurring as per details provided in the related [GitHub issue](https://github.com/google/site-kit-wp/issues/2753).
 * Should the issue persist once more feel free to reopen of share details here 
   or on GitHub. We’ll also try and recreate the issue should this require any modification
   to the plugin.
 * If you have a moment free please [share your thoughts](https://wordpress.org/support/plugin/google-site-kit/reviews/#new-post)
   on using Site Kit so far, we welcome all feedback.

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

The topic ‘`Failed to execute ‘createElement’ on ‘Document’ error message’ 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

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 7 replies
 * 2 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/failed-to-execute-createelement-on-document-error-message/#post-14003667)
 * Status: resolved