Google Search Console setup problems

AI-generated summary

A user is experiencing issues with verifying their forum on Google Search Console using a theme component. Despite adding the required HTML tag to the theme components and previewing it successfully, the tag disappears once preview mode is exited, preventing verification. The user confirms the issue persists after updating Discourse and checks that the component is added to all default themes. Another user suggests trying DNS verification, but the user notes it’s not available. The issue is resolved when another user points out that one of the themes must be set as enabled by default, which the user then does, successfully fixing the problem. user1 initially struggled with the setup, codinghorror offered an alternative, user1 clarified the DNS limitation, sam asked about theme settings, user1 provided additional details, and sam identified the fix, which user1 confirmed resolved the issue.

I tried to verify my google search console. I followed this guide: How to set up Google Webmaster Tools validation in Discourse?:

Unfortunately, it didn’t work for me. Here’s what I tried:

  1. Created a new theme component
  2. Added the html tag to the theme components
  3. Then I added the theme component to each available theme

Now here’s the problem. When I click “Preview”, then I find the google-site-verification tag.

But as soon as I leave the preview mode, it’s gone. Also Google Search Console can’t find it :sob:
My forum is here: https://forum.5upermakers.com

To make sure it’s not an issue that’s already fixed, I updated discourse about 10 minutes ago. Still the same problem.

Am I missing something here?

If you can’t figure it out, why don’t you use DNS verification instead?

I’m not an expert here :yum:
But, I think DNS verification is not available for google search console. Here’s a screen shot of the different options I can choose from:


Seems like DNS is not available yet.

Do you have an idea what could be wrong here? Was my approach correct?

Did you add this to the default theme are you running latest?

I added the theme component that I called “Google Verification” to all three default themes.

Here is some additional info:

  • I haven’t checked the “Theme is enabled by default” for any theme.
  • Before I added “GoogleVerificaton” to “Theme Components” there was a little checkbox, I didn’t check that. Now it’s gone. It only reappears if I remove the “GoogleVerification” component
  • I already tried a different Theme component to add some menu links back to my homepage with CSS and HTML. Is it possible that I broke something there?

I did perform an update this morning. I didn’t work before and also doesn’t work after the update.

For me it feels like it removes any theme component that I add there. Because the component I created for the custom html and CSS header, worked for a while but then stopped working - so I removed it a couple days ago.

Is it possible that I permanently broke something by adding custom CSS, even if I removed all custom CSS afterwards?

You need to have one of your themes set as enabled by default

Hey awesome, that solved it :heart_eyes:. Thank you very much.
image

Sry if I might have missed that somewhere in the instructions.