Schema.org Data Appears on Website
-
Hello Moz World,
I would like to incorporate Schema Data onto my website. My website has Meta tags in the of the document, which incorporates our keywords. And, in the footer, I have my businesses address, logo and other relevant information. Everything flows because it is stylized using CSS. When I input the schema.org data it appears on the website as text w/ a hyperlink. See Code:
My Company
DESCRIPTION.STREET
CITY
STATE
ZIP
United States
Phone: NUMBERI've tried to put it inside the head, body & footer of the HTML code. I want my website to show up properly through Google Structured Data Testing Tool however, I don't want the text to show up on my website not stylized. It sticks out like a soar thumb no matter where I incorporate it. My questions are; Should I even bother with Schema.org? And, is there a way to incorporate it into my website so it does not show up and Google can still pull it up?
Thanks ahead of time for all of the awesome responses!
B/R
Will H.
-
This post is deleted! -
Hi Will
I use Google Tag Manager to add structured data to the website. With GTM, the structured markup won't be in the source code and won't be seen in the browser.
The Google Structured Data Testing Tool picks up the local markup from GTM nicely.
-
You also can use JSON-LD to add this in site w/o messing with HTML. Just refer to their documentation because it can be placed everywhere - in HEAD or in BODY but wasn't visible.
-
Very Helpful! Thank you for your input Kristen.
-
Hello Gyorgy,
I was going to use Google Tag Manager as a last resort. I know Google supports a majority of searches through search engines, but I wanted all of the search engines to be able to read the Schema Data. I ended up creating a script using JSON-LD. Much easier, I used this generator. Thank you for your input!
B/R
Will
-
Hello Peter,
I ended up using JSON-LD, I found someone having the same issues on a Webmaster Forum and another member referred him to a JSON-LD Markup Generator for Schema.org. I threw the code into my header, and checked it with Google Structured Data Tester. Everything Checked out! Thank You for your time and input.
B/R
Will
-
This post is deleted! -
Here you go Kristen, https://www.jamesdflynn.com/development/json-ld-markup-generator/. Enjoy!
-
This post is deleted!