ethercreative / seo

SEO utilities including a unique field type, sitemap & redirect manager
MIT License
269 stars 96 forks source link

Focus Keywords in headless mode #372

Open thomaskvael opened 3 years ago

thomaskvael commented 3 years ago

Description

I have a Craft site that runs in headless mode and I use graphQL to fetch the content on the frontend (Next js).

I have added a seo field to every entry page and I can use the SEO field like Optimization, Social and Advanced. But below the Focus Keywords it says "This feature is not available"

When I click on "Preview" or "View" in Craft I can successfully view the page.

Is Focus keywords supported in headless mode with Graphql? Do I need to configure it somehow?

Steps to reproduce

  1. Use Craft in headless mode with GraphQL
  2. Create a Seo field in "Fields" and use SEO as field type
  3. Add Seo field to entry type in a separate (Meta) Tab
  4. Goto entry and Click on Meta Tab.
  5. Focus keywords is not available

Additional info

alexjcollins commented 3 years ago

Hey @thomaskvael 👋

At the moment, focus keywords aren't available in headless mode. When using SEO with Twig, the feature uses live preview to scan the page markup to look for the content you've actually used in the template. Since the way people use headless mode can differ, we've chosen not to support it at this time.

We also ran a survey a little while ago and found that a large number of users either don't use or don't always use the feature.

It is something we would like to do at some point, though.