Skip to content

All checks / Technical

JavaScript-based paywall hinders Google content classification

Using JavaScript to implement a paywall makes it difficult for Google to automatically determine which content is paywalled and which is freely accessible.

Warning javascript-paywall-detection

In SEOCode's checks since 9 May 2026


Why this matters.

Using JavaScript to implement a paywall makes it difficult for Google to automatically determine which content is paywalled and which is freely accessible. This can lead to incorrect classification of your content, potentially causing indexing issues or misrepresentation in search results. Google recommends using structured data (NewsArticle with isAccessibleForFree and hasPart) to clearly signal paywalled content.

Runs on .jsx .tsx .vue .svelte · Warnings are reported on the pull request but do not block the merge.


How to resolve it.

Implement paywall signaling using structured data instead of relying solely on JavaScript. Add JSON-LD:

{
  "@type": "NewsArticle",
  "isAccessibleForFree": false,
  "hasPart": {
    "@type": "WebPageElement",
    "isAccessibleForFree": false,
    "cssSelector": ".paywall-content"
  }
}

Ensure the paywall boundary is clearly defined in both HTML structure and structured data.

SEOCode writes this fix for you

On a pull request the fix arrives as a suggestion you can commit in one click, when the change is unambiguous on the line.


Where this comes from.

01

Paywalled Content

developers.google.com

Using a framework? Next.js · SvelteKit · Nuxt



Every check, on every pull request.

SEOCode runs the full ruleset on each change and comments the fixes inline.

Free for public repositories · no credit card