Agregar eventos de Umami a CTAs, login y selector de idioma

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jose Selesan
2026-11-16 10:55:34 -03:00
parent 792b9ab5c2
commit 154e0962f9
6 changed files with 12 additions and 12 deletions

View File

@@ -7,11 +7,11 @@
<h2 class="text-3xl font-extrabold tracking-tight text-balance sm:text-4xl">{{ t.finalCta.title }}</h2> <h2 class="text-3xl font-extrabold tracking-tight text-balance sm:text-4xl">{{ t.finalCta.title }}</h2>
<p class="mt-4 max-w-xl text-lg text-pretty text-slate-700 dark:text-slate-300">{{ t.finalCta.subtitle }}</p> <p class="mt-4 max-w-xl text-lg text-pretty text-slate-700 dark:text-slate-300">{{ t.finalCta.subtitle }}</p>
<div class="mt-8 flex flex-col gap-3 sm:flex-row"> <div class="mt-8 flex flex-col gap-3 sm:flex-row">
<a href="{{ site.app.signup }}" class="inline-flex w-full items-center justify-center gap-2 rounded-xl bg-brand-600 px-7 py-3.5 text-base font-semibold text-white shadow-xl shadow-brand-600/30 transition hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2 focus:ring-offset-brand-50 dark:focus:ring-offset-slate-950 sm:w-auto"> <a href="{{ site.app.signup }}" data-umami-event="signup" data-umami-event-location="final-cta" class="inline-flex w-full items-center justify-center gap-2 rounded-xl bg-brand-600 px-7 py-3.5 text-base font-semibold text-white shadow-xl shadow-brand-600/30 transition hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2 focus:ring-offset-brand-50 dark:focus:ring-offset-slate-950 sm:w-auto">
{{ t.finalCta.primary }} {{ t.finalCta.primary }}
<svg class="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M12 5l7 7-7 7" /></svg> <svg class="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M12 5l7 7-7 7" /></svg>
</a> </a>
<a href="#precios" class="inline-flex w-full items-center justify-center gap-2 rounded-xl px-7 py-2 text-base font-semibold text-slate-800 underline underline-offset-4 transition hover:bg-brand-50 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2 focus:ring-offset-brand-50 sm:border sm:border-brand-200 sm:bg-white sm:py-3.5 sm:no-underline dark:sm:border-slate-700 dark:sm:bg-slate-900 dark:text-slate-100 dark:hover:bg-slate-800 dark:focus:ring-offset-slate-950 sm:w-auto">{{ t.finalCta.secondary }}</a> <a href="#precios" data-umami-event="see-pricing" data-umami-event-location="final-cta" class="inline-flex w-full items-center justify-center gap-2 rounded-xl px-7 py-2 text-base font-semibold text-slate-800 underline underline-offset-4 transition hover:bg-brand-50 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2 focus:ring-offset-brand-50 sm:border sm:border-brand-200 sm:bg-white sm:py-3.5 sm:no-underline dark:sm:border-slate-700 dark:sm:bg-slate-900 dark:text-slate-100 dark:hover:bg-slate-800 dark:focus:ring-offset-slate-950 sm:w-auto">{{ t.finalCta.secondary }}</a>
</div> </div>
</div> </div>

View File

@@ -32,7 +32,7 @@
<div class="mt-12 flex flex-col items-center justify-between gap-4 border-t border-slate-200 pt-8 sm:flex-row dark:border-slate-800"> <div class="mt-12 flex flex-col items-center justify-between gap-4 border-t border-slate-200 pt-8 sm:flex-row dark:border-slate-800">
<p class="text-sm text-slate-500 dark:text-slate-400">© {{ site.year }} {{ site.name }}. {{ t.footer.rights }}</p> <p class="text-sm text-slate-500 dark:text-slate-400">© {{ site.year }} {{ site.name }}. {{ t.footer.rights }}</p>
<a href="{{ site.app.login }}" class="text-sm font-medium text-slate-600 transition hover:text-brand-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2 dark:text-slate-400 dark:hover:text-brand-400 dark:focus-visible:ring-offset-slate-900">{{ t.ui.login }}</a> <a href="{{ site.app.login }}" data-umami-event="login" data-umami-event-location="footer" class="text-sm font-medium text-slate-600 transition hover:text-brand-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2 dark:text-slate-400 dark:hover:text-brand-400 dark:focus-visible:ring-offset-slate-900">{{ t.ui.login }}</a>
</div> </div>
</div> </div>
</footer> </footer>

View File

@@ -16,10 +16,10 @@
<!-- Actions --> <!-- Actions -->
<div class="flex items-center gap-3"> <div class="flex items-center gap-3">
<!-- CTA --> <!-- CTA -->
<a href="{{ site.app.login }}" class="hidden items-center gap-2 text-sm font-semibold text-slate-700 transition hover:text-brand-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2 dark:text-slate-200 dark:hover:text-brand-400 dark:focus-visible:ring-offset-slate-950 sm:inline-flex"> <a href="{{ site.app.login }}" data-umami-event="login" data-umami-event-location="header" class="hidden items-center gap-2 text-sm font-semibold text-slate-700 transition hover:text-brand-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2 dark:text-slate-200 dark:hover:text-brand-400 dark:focus-visible:ring-offset-slate-950 sm:inline-flex">
{{ t.ui.login }} {{ t.ui.login }}
</a> </a>
<a href="{{ site.app.signup }}" class="inline-flex items-center justify-center rounded-lg bg-brand-600 px-4 py-2.5 text-sm font-semibold text-white shadow-lg shadow-brand-600/25 transition hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2 dark:focus:ring-offset-slate-950"> <a href="{{ site.app.signup }}" data-umami-event="signup" data-umami-event-location="header" class="inline-flex items-center justify-center rounded-lg bg-brand-600 px-4 py-2.5 text-sm font-semibold text-white shadow-lg shadow-brand-600/25 transition hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2 dark:focus:ring-offset-slate-950">
{{ t.ui.signup }} {{ t.ui.signup }}
</a> </a>
@@ -31,7 +31,7 @@
</button> </button>
<div id="lang-menu" class="absolute right-0 mt-2 hidden w-56 overflow-hidden rounded-xl border border-slate-200 bg-white py-1 shadow-xl shadow-slate-900/10 dark:border-slate-700 dark:bg-slate-900 dark:shadow-black/40"> <div id="lang-menu" class="absolute right-0 mt-2 hidden w-56 overflow-hidden rounded-xl border border-slate-200 bg-white py-1 shadow-xl shadow-slate-900/10 dark:border-slate-700 dark:bg-slate-900 dark:shadow-black/40">
{% for l in locales %} {% for l in locales %}
<a href="{{ pagePaths[l.code] }}" hreflang="{{ l.htmlLang }}" lang="{{ l.htmlLang }}" data-lang="{{ l.code }}" {% if l.code == locale.code %}aria-current="true"{% endif %} class="flex items-center justify-between gap-3 px-4 py-2.5 text-sm transition hover:bg-slate-100 focus:outline-none focus-visible:bg-slate-100 dark:hover:bg-slate-800 dark:focus-visible:bg-slate-800 {% if l.code == locale.code %}font-semibold text-brand-700 dark:text-brand-300{% else %}text-slate-700 dark:text-slate-200{% endif %}"> <a href="{{ pagePaths[l.code] }}" data-umami-event="language-change" data-umami-event-lang="{{ l.code }}" data-umami-event-location="header" hreflang="{{ l.htmlLang }}" lang="{{ l.htmlLang }}" data-lang="{{ l.code }}" {% if l.code == locale.code %}aria-current="true"{% endif %} class="flex items-center justify-between gap-3 px-4 py-2.5 text-sm transition hover:bg-slate-100 focus:outline-none focus-visible:bg-slate-100 dark:hover:bg-slate-800 dark:focus-visible:bg-slate-800 {% if l.code == locale.code %}font-semibold text-brand-700 dark:text-brand-300{% else %}text-slate-700 dark:text-slate-200{% endif %}">
{{ l.label }} {{ l.label }}
{% if l.code == locale.code %}<svg class="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6 9 17l-5-5" /></svg>{% endif %} {% if l.code == locale.code %}<svg class="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6 9 17l-5-5" /></svg>{% endif %}
</a> </a>
@@ -81,7 +81,7 @@
<span class="text-base font-medium text-slate-700 dark:text-slate-200">{{ t.ui.language }}</span> <span class="text-base font-medium text-slate-700 dark:text-slate-200">{{ t.ui.language }}</span>
<div class="mt-3 grid grid-cols-2 gap-2"> <div class="mt-3 grid grid-cols-2 gap-2">
{% for l in locales %} {% for l in locales %}
<a href="{{ pagePaths[l.code] }}" hreflang="{{ l.htmlLang }}" lang="{{ l.htmlLang }}" data-lang="{{ l.code }}" {% if l.code == locale.code %}aria-current="true"{% endif %} class="rounded-lg border px-3 py-2 text-center text-sm transition focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 {% if l.code == locale.code %}border-brand-500 bg-brand-50 font-semibold text-brand-700 dark:border-brand-400 dark:bg-brand-500/15 dark:text-brand-300{% else %}border-slate-200 text-slate-700 hover:bg-slate-100 dark:border-slate-700 dark:text-slate-200 dark:hover:bg-slate-800{% endif %}">{{ l.label }}</a> <a href="{{ pagePaths[l.code] }}" data-umami-event="language-change" data-umami-event-lang="{{ l.code }}" data-umami-event-location="header-mobile" hreflang="{{ l.htmlLang }}" lang="{{ l.htmlLang }}" data-lang="{{ l.code }}" {% if l.code == locale.code %}aria-current="true"{% endif %} class="rounded-lg border px-3 py-2 text-center text-sm transition focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 {% if l.code == locale.code %}border-brand-500 bg-brand-50 font-semibold text-brand-700 dark:border-brand-400 dark:bg-brand-500/15 dark:text-brand-300{% else %}border-slate-200 text-slate-700 hover:bg-slate-100 dark:border-slate-700 dark:text-slate-200 dark:hover:bg-slate-800{% endif %}">{{ l.label }}</a>
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
@@ -89,7 +89,7 @@
<a href="{{ navBase }}{{ item.href }}" class="block rounded-lg px-3 py-2.5 text-base font-medium text-slate-700 transition hover:bg-slate-100 hover:text-brand-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 dark:text-slate-200 dark:hover:bg-slate-800 dark:hover:text-brand-400" data-menu-link>{{ t.nav[item.key] }}</a> <a href="{{ navBase }}{{ item.href }}" class="block rounded-lg px-3 py-2.5 text-base font-medium text-slate-700 transition hover:bg-slate-100 hover:text-brand-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 dark:text-slate-200 dark:hover:bg-slate-800 dark:hover:text-brand-400" data-menu-link>{{ t.nav[item.key] }}</a>
{% endfor %} {% endfor %}
<div class="pt-3"> <div class="pt-3">
<a href="{{ site.app.login }}" class="block rounded-lg px-3 py-2.5 text-base font-medium text-slate-700 transition hover:bg-slate-100 hover:text-brand-600 dark:text-slate-200 dark:hover:bg-slate-800 dark:hover:text-brand-400" data-menu-link>{{ t.ui.login }}</a> <a href="{{ site.app.login }}" data-umami-event="login" data-umami-event-location="header-mobile" class="block rounded-lg px-3 py-2.5 text-base font-medium text-slate-700 transition hover:bg-slate-100 hover:text-brand-600 dark:text-slate-200 dark:hover:bg-slate-800 dark:hover:text-brand-400" data-menu-link>{{ t.ui.login }}</a>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -15,13 +15,13 @@
</p> </p>
<div class="mt-8 flex flex-col gap-3 sm:flex-row"> <div class="mt-8 flex flex-col gap-3 sm:flex-row">
<a href="{{ site.app.signup }}" class="inline-flex w-full items-center justify-center gap-2 rounded-xl bg-brand-600 px-7 py-3.5 text-base font-semibold text-white shadow-xl shadow-brand-600/30 transition hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2 dark:focus:ring-offset-slate-950 sm:w-auto"> <a href="{{ site.app.signup }}" data-umami-event="signup" data-umami-event-location="hero" class="inline-flex w-full items-center justify-center gap-2 rounded-xl bg-brand-600 px-7 py-3.5 text-base font-semibold text-white shadow-xl shadow-brand-600/30 transition hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2 dark:focus:ring-offset-slate-950 sm:w-auto">
{{ t.hero.ctaPrimary }} {{ t.hero.ctaPrimary }}
<svg class="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <svg class="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M5 12h14M12 5l7 7-7 7" /> <path d="M5 12h14M12 5l7 7-7 7" />
</svg> </svg>
</a> </a>
<a href="#caracteristicas" class="inline-flex w-full items-center justify-center gap-2 rounded-xl border border-slate-300 bg-white px-7 py-3.5 text-base font-semibold text-slate-800 transition hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-100 dark:hover:bg-slate-800 dark:focus:ring-offset-slate-950 sm:w-auto"> <a href="#caracteristicas" data-umami-event="see-features" data-umami-event-location="hero" class="inline-flex w-full items-center justify-center gap-2 rounded-xl border border-slate-300 bg-white px-7 py-3.5 text-base font-semibold text-slate-800 transition hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-100 dark:hover:bg-slate-800 dark:focus:ring-offset-slate-950 sm:w-auto">
{{ t.hero.ctaSecondary }} {{ t.hero.ctaSecondary }}
</a> </a>
</div> </div>

View File

@@ -21,7 +21,7 @@
{% endfor %} {% endfor %}
</ol> </ol>
<a href="{{ site.app.signup }}" class="mt-10 inline-flex w-full items-center justify-center gap-2 rounded-xl bg-brand-600 px-7 py-3.5 text-base font-semibold text-white shadow-xl shadow-brand-600/30 transition hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2 dark:focus:ring-offset-slate-950 sm:w-auto"> <a href="{{ site.app.signup }}" data-umami-event="signup" data-umami-event-location="how-it-works" class="mt-10 inline-flex w-full items-center justify-center gap-2 rounded-xl bg-brand-600 px-7 py-3.5 text-base font-semibold text-white shadow-xl shadow-brand-600/30 transition hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2 dark:focus:ring-offset-slate-950 sm:w-auto">
{{ t.howItWorks.cta }} {{ t.howItWorks.cta }}
<svg class="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M12 5l7 7-7 7" /></svg> <svg class="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M12 5l7 7-7 7" /></svg>
</a> </a>

View File

@@ -33,7 +33,7 @@
{% endfor %} {% endfor %}
</ul> </ul>
<a href="{{ site.app.signup }}" class="mt-8 inline-flex w-full items-center justify-center rounded-xl px-6 py-3 text-sm font-semibold transition focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-slate-900 {% if plan.ctaStyle == 'solid' %}bg-brand-600 text-white shadow-lg shadow-brand-600/30 hover:bg-brand-700{% else %}border border-slate-300 bg-white text-slate-800 hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-100 dark:hover:bg-slate-800{% endif %}">{{ copy.cta }}</a> <a href="{{ site.app.signup }}" data-umami-event="signup" data-umami-event-location="pricing" data-umami-event-plan="{{ plan.name }}" class="mt-8 inline-flex w-full items-center justify-center rounded-xl px-6 py-3 text-sm font-semibold transition focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-slate-900 {% if plan.ctaStyle == 'solid' %}bg-brand-600 text-white shadow-lg shadow-brand-600/30 hover:bg-brand-700{% else %}border border-slate-300 bg-white text-slate-800 hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-100 dark:hover:bg-slate-800{% endif %}">{{ copy.cta }}</a>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>