# Track broken checkout links in Linear

Check the checkout button on a schedule. When it disappears or points to the wrong address, attach the current screenshot to one recurring Linear issue.

[Use template](https://dashboard.fasthook.io/workflow/new?templateKey=scheduled-checkout-link-to-linear&templateName=Track+broken+checkout+links+in+Linear)

**Required accounts**

- Cloudflare Browser Run
- Linear
- Http

## Track broken checkout links in Linear

### 1. Trigger · Check checkout every five minutes

**Schedule**. Run automatically on the configured schedule.

### 2. Transformation · Set the checkout page and incident identity

**FastHook**. Run JavaScript to prepare data for the next workflow step.

### 3. Action · Inspect the checkout link

**Cloudflare Browser Run**. Extract text and attributes from elements matching your CSS selectors.

### 4. Transformation · Compare the rendered link with the expected checkout

**FastHook**. Run JavaScript to prepare data for the next workflow step.

### 5. Filter · Continue when checkout needs attention

**FastHook**. Continue only when the configured conditions match the incoming record.

### 6. Action · Capture the broken checkout page

**Cloudflare Browser Run**. Capture a page or selected element at the viewport size you choose.

### 7. Action · Find the recurring checkout issue

**Linear**. Run another Linear GraphQL query or mutation.

### 8. Action · Reserve the screenshot attachment

**Linear**. Run another Linear GraphQL query or mutation.

### 9. Transformation · Prepare the Linear attachment headers

**FastHook**. Run JavaScript to prepare data for the next workflow step.

### 10. Action · Upload the screenshot to Linear

**Http**. Send an HTTP request and use the response in subsequent steps.

### 11. Transformation · Prepare the recurring issue update

**FastHook**. Run JavaScript to prepare data for the next workflow step.

### 12. Action · Create or update the checkout issue

**Linear**. Run another Linear GraphQL query or mutation.

## Set up your workflow

1. **Choose the checkout link** Enter the public storefront URL, a CSS selector for its checkout anchor and the expected absolute checkout URL. A missing, ambiguous or misdirected link opens an incident.
2. **Choose one Linear issue per monitor** Enter the Linear team ID and a UUID for this monitor. Keep that UUID across runs so later failures update the same issue. Set the schedule and timezone.
3. **Verify both outcomes** Try a correct link, then change the expected URL for a test. Check that Linear shows the screenshot and observed destination. Repeat the failed check to confirm it updates the same issue.

## Related integrations

- [Schedule trigger](https://www.fasthook.io/docs/triggers/schedule)
- [Cloudflare Browser Run integrations](https://www.fasthook.io/apps/cloudflare-browser-run/integrations)
- [Linear integrations](https://www.fasthook.io/apps/linear/integrations)
