ampproject / ampproject/amphtml

amp-subscriptions: Render SwG button when "isAccessibleForFree" is "True".

Open
#35,739 2 comments 0 reactions 0 assignees View on GitHub
Stale Type: Feature Request
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

### Description

We would like to use it in free pages as well.
When `"isAccessibleForFree"` is `"True"` in JSON-LD markup, SwG button will not be rendered.

### Alternatives Considered

Navigating users to html page or paywalled page.

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the amp-subscriptions code that reads JSON-LD markup and decides whether to render the SwG button. Reproduce the case where "isAccessibleForFree" is "True", then verify that the button renders on free pages without changing the existing paywalled behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.