Syntax error in Sitelinks Searchbox - need help fixing

New Member
2 0 0

I am trying to index my website on the google search console and it says my main home page has an error. I am not coding savvy and need help revoming that error.  anyone know how  i can fix this on my url (mugscoffeeroasters.com)

 

any help will be appreciated

 

thanks,

 

Manuel 

0 Likes
Shopify Partner
532 111 151

@mgleunam 

 

Yes, I checked and there is one error in your site. You can check with this url https://search.google.com/structured-data/testing-tool#url=mugscoffeeroasters.com

search_error.png

 

Schema.org defines ‘WebSite’ as a set of related web pages that usually share the same domain. You have to include the following properties in the WebSite data type:

  • url - the URL of your website
  • id
  • target - “Indicates a target EntryPoint for an Action” (source: schema.org)
  • query-input - this is a text search deep link with -input that inlines “the resulting value of -input properties into action URLs”. Read more

You can use following code:

<script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "WebSite",
      "name": "MUGS Coffee Roasters",
      "potentialAction": {
        "@type": "SearchAction",
        "target": "https:\/\/mugscoffeeroasters.com/search?q={search_term_string}",
        "query-input": "required name=search_term_string"
      },
      "url": "https:\/\/mugscoffeeroasters.com"
    }
  </script>

Still, if you are not comfortable to fix this issue then let me know, I will send request for the Shopify collaborate account access and will fix it from here.

 

Cheers,

Tejas

 

 

 

 

Shopify Expert | skype: tejas.nadpara
- Feel free to contact me on support@hexaecommerce.com regarding any help
- Like and Mark as an Accepted Solution if reply helpful
0 Likes
New Member
2 0 0

Hi,

 

Thank you for the help! If you tell me what exactly to remove and input i can do that. But if someone could fix it for me that would be great !

 

Thanks again ,

 

Manuel 

0 Likes
Highlighted
Shopify Expert
378 22 59

Hey Manuel, it looks like a problem with your Google Tag Manager installation:

 

gtm error.jpg

 

gtm.js is related to Google Tag Manager.

 

I'd log into your tag manager to make sure the ID's match up and check the installation from there and re-install if necessary (insert the scripts from GTM to your theme.liquid file).

 

Founder of Speed Boostr (Shopify optimization and dev agency).
Creator of Order Automator (app that auto fulfills orders, adds tags, emails).
Creator of Shopify Analyzer (free performance analysis tool).
I also build custom apps and automated solutions.
Enjoy the adventure!
0 Likes
Shopify Partner
532 111 151

@mgleunam 

 

Sent you request for the Shopify collaborate account access, please accept it so I can fix the issue.

 

Thank you,

Tejas

Shopify Expert | skype: tejas.nadpara
- Feel free to contact me on support@hexaecommerce.com regarding any help
- Like and Mark as an Accepted Solution if reply helpful
0 Likes
Shopify Partner
532 111 151

@mgleunam 

 

I see you accepted my request!

I fixed the issue :)

no_search_error.png

 

Cheers,

Tejas

Shopify Expert | skype: tejas.nadpara
- Feel free to contact me on support@hexaecommerce.com regarding any help
- Like and Mark as an Accepted Solution if reply helpful
0 Likes
New Member
4 0 0

Hi @Tejas_Nadpara ,

 

 

I'm having problem fixing my search string, I found the solution but I am unable to edit the code since I cannot find it in my liquid.theme on my store. Could you help me, please?

I was able to make the corrections below  in google Structure testing tool:

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"name": "Papilon Monarque",
"potentialAction": {
"@type": "SearchAction",
"target": "https:\/\/papilonmonarque.com/search?q={search_term_string}",
"query-input": "required name=search_term_string"
},
"url": "https:\/\/papilonmonarque.com"

0 Likes
Shopify Partner
532 111 151

@Papilonmonarque 

 

I checked your site https://papilonmonarque.com/ but can't able to see any content, there is only white blank space. Have you change anything in your theme files? because seems like there are too many JS errors.

 

Thank you,

Tejas

Shopify Expert | skype: tejas.nadpara
- Feel free to contact me on support@hexaecommerce.com regarding any help
- Like and Mark as an Accepted Solution if reply helpful
0 Likes
New Member
4 0 0
@Tejas_Nadpara
Could you check again please, the code is hidden in the Div section around line 150.😭I tried to edit it and I messed up my theme but it's back to normal now.
0 Likes