fuxt icon indicating copy to clipboard operation
fuxt copied to clipboard

Implement Better SEO (Using Google Schema)

Open izzygld opened this issue 5 years ago • 3 comments
trafficstars

You wrote on the TODO list:

Perhaps add this for better SEO: https://developers.google.com/search/docs/guides/intro-structured-data

Can i start implementing my wp-graphql-google-schema see - https://github.com/izzygld/wp-graphql-google-schema?

izzygld avatar Dec 19 '19 15:12 izzygld

Hi @izzygld, thanks for thinking of us!

Curious how this works for frontends that don't map perfectly to WordPress backends URL structure?

Also what does this allow, and what would the implementation actually involve? A WordPress plugin for stackhaus-backend? Any frontend code?

drewbaker avatar Dec 20 '19 00:12 drewbaker

sure.

you wrote on the todo list: Perhaps add this for better SEO: https://developers.google.com/search/docs/guides/intro-structured-data or https://www.npmjs.com/package/nuxt-jsonld

in short, it would pull all the info of a wordpress post via graphql and display it in Jsonld schema format as recommended by google.

you would call the schema component on the page/post - example -here.

Let me know what you think.

izzygld avatar Dec 22 '19 13:12 izzygld

Now that we have the <wp-seo> component, I think I can get this working.

Would be really good for the funkhaus sites to get this working for anypage that has a ACF video URL set: https://developers.google.com/search/docs/data-types/video

Blog posts could get this: https://developers.google.com/search/docs/data-types/article

Perhaps the move is to add a prop to <wp-content> that sets the structured data type? And then the GQL query can get the required data.

drewbaker avatar Jun 17 '20 20:06 drewbaker