From 27d4916ca74d29c3e2f86545a29dc2119e53c506 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADctor=20Cavero?=
<33009505+victorcavero14@users.noreply.github.com>
Date: Thu, 17 Sep 2026 19:26:04 +0200
Subject: [PATCH] =?UTF-8?q?SEO:=20medir=20las=20p=C3=A1ginas=20SEO,=20conv?=
=?UTF-8?q?ertirlas=20y=20ampliar=20el=20cluster=20de=20comparativas=20(#8?=
=?UTF-8?q?6)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* feat(seo): measure the SEO pages, convert from them, and widen the cluster
The audit of 17-sep-2026 found the static SEO surface ranking at positions
1.8-4 with a 0.2-1.6% CTR while leaking every click it earned: the pages
carried no analytics at all (~424 clicks/month invisible, confirmed with
curl), the only link into the app was the fixed nav button, ten internal
links pointed at /cdn-cgi/l/email-protection, thirteen titles and
twenty-one descriptions were past the length Google renders, and every URL
in the sitemap claimed the same lastmod.
What changes, and how it is verified:
- Analytics (render.js). The shim, the %VITE_OPENPANEL_*% gate and
ANALYTICS_HOSTS are ported verbatim from index.html, plus the init call
the SPA makes from lib/consent.js — first-party measurement is exempt
from prior consent and always on, so there is nothing to ask here. Vite
only rewrites index.html and these files are emitted assets, so the
plugin substitutes the placeholders itself; unset still yields an inert
page. Verified by building with and without the variables.
- Body CTA (render.js, per-page copy in pages.js). Rendered between the
TL;DR and the body, with the text that fits each page's argument, and
never on legal pages or the 404. The link carries utm_* so
lib/attribution.js can post the click with the signup, and fires a
SeoCtaClick event so the CTA can be told apart from the nav button.
- Broken mailto links (legal.js). 46 plain-text addresses rewritten as
. Cloudflare Scrape Shield turns the bare address
into a /cdn-cgi/l/email-protection link, which is a 404 for crawlers.
- Titles and descriptions. Every title is now <=60 characters and every
description <=160, measured across all 35 emitted pages rather than
eyeballed (/gta-5-clips, merged the same week, was over on both). The
check is part of the verification, not a one-off.
- Resume the job after sign-in (App.jsx). Pressing "get free clips" with no
session opened the login modal and dropped the request: the magic link
lands on a fresh document, so the pasted URL was gone. The request is now
written down before the redirect and replayed after it, through the same
handleProcess, so the isSignedIn -> isManaged -> keysMissing gate that
decides billing is untouched: an unentitled account still lands on
#/pricing, with the request parked until it pays. Files cannot be
serialised, so those resume only within the same document.
- Gallery surface (app.py). The gallery head had no canonical; the JSON-LD
was built from html.escape() output, producing &/" and
valid-JSON-but-wrong names; the video page's nav and CTAs were relative
hrefs on the api host, where "/" is a 404 (the app is on www). JSON-LD is
now serialised as JSON with <> and & escaped as unicode, both pages carry
their canonical, and cross-host links are absolute. Verified by rendering
both routes with a monkeypatched gallery: the JSON parses and a title
with quotes, an ampersand and markup survives round-trip.
- New comparison pages (pages.js): /opus-clip-pricing, /opus-clip-free-
alternative, /opus-ai, /opus-pro, /vizard-ai-video-to-text,
/submagic-reviews and a Spanish index at /alternativas. They target
buying-intent variants (opus clips pricing, opus clip free trial, opus ai,
opus pro, is vizard ai free) that the existing pages do not answer, read
every price from data.js, and join the related-page ring, the footer and
the landing links. /alternatives/vizard also gained the brand Q&A ("Is
Vizard AI free?"), since "vizard ai" is how its volume is spelled.
Build: npm run build green (35 HTML files, all metadata in range, all
JSON-LD parseable). Tests: pytest tests/ -q, 777 passed, 19 skipped.
* fix(seo): CTA sin UTM interno, tutorial no pisa el job reanudado, mailto en el agente DMCA
- El CTA de las paginas SEO enlazaba al mismo origen con utm_*, lo que
sobrescribia la atribucion real del visitante en lib/attribution.js y
partia la sesion en OpenPanel. El evento SeoCtaClick sigue midiendo el clic.
- Alta nueva con un enlace aparcado: no abrir el tutorial intro encima del
job que se reanuda solo.
- LoginModal solo promete 'tu video esta guardado' cuando el payload es una
URL; un File no sobrevive al magic link en otra pestana.
- Los dos info@upload-post.com del agente DMCA tambien en mailto.
---------
Co-authored-by: victormanuel.caverogracia <>
---
app.py | 93 ++-
dashboard/index.html | 7 +-
dashboard/seo/data.js | 20 +-
dashboard/seo/landing-fallback.js | 7 +
dashboard/seo/legal.js | 108 +--
dashboard/seo/pages.js | 874 ++++++++++++++++++++++--
dashboard/seo/render.js | 107 ++-
dashboard/src/App.jsx | 90 ++-
dashboard/src/Landing.jsx | 7 +
dashboard/src/components/LoginModal.jsx | 14 +-
dashboard/src/lib/analytics.js | 2 +
dashboard/vite-plugin-seo.js | 36 +-
12 files changed, 1231 insertions(+), 134 deletions(-)
diff --git a/app.py b/app.py
index 3c2e71b..7fe9a02 100644
--- a/app.py
+++ b/app.py
@@ -5914,6 +5914,33 @@ async def saasshorts_post_to_socials(req: SaaSPostRequest, request: Request):
raise HTTPException(status_code=500, detail=str(e))
+# The gallery and the per-video pages are rendered by this API service, but the
+# app they advertise lives on www. A relative href on `api.` host resolves
+# against `api.`, where `/` is not the app (it is a 404), so every link that
+# crosses hosts is written absolute. `www.openshorts.app/gallery` and
+# `/video/...` 301 to the api host (dashboard/nginx.conf), so the api host is
+# the final domain for those two and the app host is final for everything else.
+APP_HOST = "https://www.openshorts.app"
+GALLERY_HOST = "https://api.openshorts.app"
+
+
+def _json_ld(payload: dict) -> str:
+ """Serialise a JSON-LD payload for an inline `
+
+/* The body CTA. Until now the only link to the app on these pages was the fixed
+ * nav button, so a reader who finished the article had nothing to click: the
+ * pages sit at positions 1.8-4 with a 0.2-1.6% CTR and no path into the
+ * product. Copy is per page (`page.cta`) because the push differs — a reader
+ * on the no-watermark page is arguing about watermarks, not about editing.
+ *
+ * Plain same-origin link on purpose: utm_* here would overwrite the visitor's
+ * real acquisition source (google, reddit...) in lib/attribution.js and split
+ * the OpenPanel session. The inline handler reports the click with the page
+ * slug, which is what tells us whether the CTA or the nav button is doing the
+ * work. */
+const DEFAULT_CTA = {
+ label: 'Try it',
+ title: 'Paste a link, get vertical clips',
+ body: '20 free minutes a month, no credit card. Or self-host it free under MIT.',
+ button: 'Get free clips',
+}
+
+const ctaBlock = (page) => {
+ const c = { ...DEFAULT_CTA, ...(page.cta || {}) }
+ const slug = page.path.replace(/^\//, '').replace(/\//g, '-') || 'home'
+ const href = `${SITE.url}/`
+ return `
+ ${esc(c.body)}
${p}
`).join('')}Access your plan and generate shorts with no API keys.
+ {queued && ( ++ Your video is saved. Sign in and the clips start on their own — you will not have to paste it again. +
+