Title: Uncaught SyntaxError: Unexpected identifier &#8216;Last&#8217;
Last modified: June 11, 2026

---

# Uncaught SyntaxError: Unexpected identifier ‘Last’

 *  Resolved [beatty67](https://wordpress.org/support/users/beatty67/)
 * (@beatty67)
 * [2 days, 22 hours ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-last/)
 * Hi – new site with a child of Twenty Twenty-five theme. I just activated the 
   Google Site Kit and connected it to Search Console, GA4, and Tag Manager, and
   now I see this error:
 *     ```wp-block-code
       28a0472ad35c.googles…434b84f0cd.min.js:1 Uncaught SyntaxError: Unexpected identifier 'Last'
       ```
   
 * Is this a matter of some plugin conflict, or is there something else I might 
   do to fix it?
 * Thanks much in advance,
 * Beatty
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-syntaxerror-unexpected-identifier-last%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [2 days, 10 hours ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-last/#post-18936168)
 * Hi [@beatty67](https://wordpress.org/support/users/beatty67/), thanks for opening
   a support topic with us and sharing the error message you are seeing. I’d be 
   happy to look into this further for you. Please could you share the following:
    1. Your [Site Health information](https://i.imgur.com/Rtkmsba.png). You can [use this form](https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/)
       to share privately if preferred.
    2. Have you tried setting up Site Kit in an [Incognito browser](https://imgur.com/ALzgiHp)?
       And does the same issue occur?
    3. Does the error message display when accessing the Site Kit dashboard? Please
       share a screenshot of it if possible.
 * You could also try following the troubleshooting steps [here](https://sitekit.withgoogle.com/documentation/troubleshooting/using-troubleshooting-mode/)
   to see if the same happens while in troubleshooting mode with just Site Kit active.
   Let me know how you get on with that and the above checks.
 * If you have anymore questions at this time please feel free to ask them.
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [2 days, 4 hours ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-last/#post-18936533)
 * [@beatty67](https://wordpress.org/support/users/beatty67/) I can see you have
   shared your site health so thanks for that. Could I please also ask you to share
   the other information requested as well as the outcome of running the troubleshooting
   checks. This information will be helpful in determining the cause of this error.
 * I can also see that you have the GTM4WP plugin active on your site. It’s possible
   that if you are using this and Site Kit for Tag Manager code placement and management,
   there could be a conflict between the two plugins. If you disable the GTM4WP 
   plugin, do you still encounter the same error?
 *  Thread Starter [beatty67](https://wordpress.org/support/users/beatty67/)
 * (@beatty67)
 * [2 days, 3 hours ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-last/#post-18936586)
 * Hi – thanks for the steps to take on this. Now, but of course, I don’t see any
   errors except for this warning when viewing in Firefox (incognito/private mode):
 *     ```wp-block-code
       The value of the attribute “expires” for the cookie “_ga_ELS62P9L5H” has been overwritten.
       ```
   
 * That tag or code ending in L5H is not what I have in the GTM plugin. So I’m not
   sure what that is.
 * But the other error has magically gone away. I’ve checked Brave, Safari, Chrome,
   and Vivadi.
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [2 days, 3 hours ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-last/#post-18936612)
 * [@beatty67](https://wordpress.org/support/users/beatty67/) Can you confirm that
   the error is no longer showing and you are able to use Site Kit without any issue
   at this time?
 *  Thread Starter [beatty67](https://wordpress.org/support/users/beatty67/)
 * (@beatty67)
 * [2 days, 2 hours ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-last/#post-18936661)
 * Hi [@adamdunnage](https://wordpress.org/support/users/adamdunnage/) Yes – just
   now see the stats on my dashboard. No more errors.
 * Thank you!

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-syntaxerror-unexpected-identifier-last%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](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

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

 * 5 replies
 * 2 participants
 * Last reply from: [beatty67](https://wordpress.org/support/users/beatty67/)
 * Last activity: [2 days, 2 hours ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-last/#post-18936661)
 * Status: resolved