feat(analytics): add Plausible custom-event markings for six goals

Mark the six conversion goals on the self-hosted Plausible instance so the
events match the goals to be registered in Plausible. Event names verbatim:
Trial, FAQ, Buy, Custom Quote, search posts, Project Plan.

CSS-class markings (work without JS logic, on the clickable element):
- FAQ  -> index/de/es index .faq-card; odoo-hosting-2027 + odoo-community-upgrade
          (de/es twins) and australia <summary>; support.html .faq-question
- Buy  -> index/de/es index .btn-buy anchors; australia + bootcamp native
          post_basket submit buttons (forms stay native POST)

JS call markings in script.js (loaded by index, de/index, es/index):
- Trial        on the successful trial-form POST (.then branch)
- Custom Quote on the successful custom-quote POST (.then branch)
- Project Plan on the successful business-wizard submit
- search posts on the FIRST input of #blogSearch only (guard flag, one per
  pageview, not on every keystroke, not on #ocaSearch)

Nothing fires on page load; the 'Start the free trial' anchors that only
scroll to #trialCard are deliberately not tagged. One goal per topic across
all languages, no language suffix. No visual, behavioural or request change.
This commit is contained in:
webmaster committed 2026-10-28 21:07:19 +00:00
1 parent ea97e65416
commit 73b3f34696
13 files changed
+104 -96

No files matched your search

+15 -15
View File
@@ -321,7 +321,7 @@
<!-- First Steps -->
<div class="faq-panel active" id="panel-first-steps">
<div class="faq-item">
<button class="faq-question">
<button class="faq-question plausible-event-name=FAQ">
<span>My Odoo seems empty. What can I do with it?</span>
<span class="faq-icon"><i class="fas fa-chevron-down"></i></span>
</button>
@@ -341,7 +341,7 @@
</div>
</div>
<div class="faq-item">
<button class="faq-question">
<button class="faq-question plausible-event-name=FAQ">
<span>How do I install a new app?</span>
<span class="faq-icon"><i class="fas fa-chevron-down"></i></span>
</button>
@@ -351,7 +351,7 @@
</div>
</div>
<div class="faq-item">
<button class="faq-question">
<button class="faq-question plausible-event-name=FAQ">
<span>How do I add my email Server for sending messages from Odoo?</span>
<span class="faq-icon"><i class="fas fa-chevron-down"></i></span>
</button>
@@ -361,7 +361,7 @@
</div>
</div>
<div class="faq-item">
<button class="faq-question">
<button class="faq-question plausible-event-name=FAQ">
<span>How do I change my login name or password?</span>
<span class="faq-icon"><i class="fas fa-chevron-down"></i></span>
</button>
@@ -375,7 +375,7 @@
<!-- Advanced Users -->
<div class="faq-panel" id="panel-advanced">
<div class="faq-item">
<button class="faq-question">
<button class="faq-question plausible-event-name=FAQ">
<span>Do I get SSH access to my service?</span>
<span class="faq-icon"><i class="fas fa-chevron-down"></i></span>
</button>
@@ -384,7 +384,7 @@
</div>
</div>
<div class="faq-item">
<button class="faq-question">
<button class="faq-question plausible-event-name=FAQ">
<span>How do I configure my Backup frequency?</span>
<span class="faq-icon"><i class="fas fa-chevron-down"></i></span>
</button>
@@ -393,7 +393,7 @@
</div>
</div>
<div class="faq-item">
<button class="faq-question">
<button class="faq-question plausible-event-name=FAQ">
<span>How long are Backups stored?</span>
<span class="faq-icon"><i class="fas fa-chevron-down"></i></span>
</button>
@@ -402,7 +402,7 @@
</div>
</div>
<div class="faq-item">
<button class="faq-question">
<button class="faq-question plausible-event-name=FAQ">
<span>How do I route my domain to my Odoo?</span>
<span class="faq-icon"><i class="fas fa-chevron-down"></i></span>
</button>
@@ -412,7 +412,7 @@
</div>
</div>
<div class="faq-item">
<button class="faq-question">
<button class="faq-question plausible-event-name=FAQ">
<span>How can I install Odoo Enterprise?</span>
<span class="faq-icon"><i class="fas fa-chevron-down"></i></span>
</button>
@@ -425,7 +425,7 @@
<!-- Trouble Shooting -->
<div class="faq-panel" id="panel-trouble">
<div class="faq-item">
<button class="faq-question">
<button class="faq-question plausible-event-name=FAQ">
<span>After a git check in, my server does not come up again or shows an error 500</span>
<span class="faq-icon"><i class="fas fa-chevron-down"></i></span>
</button>
@@ -434,7 +434,7 @@
</div>
</div>
<div class="faq-item">
<button class="faq-question">
<button class="faq-question plausible-event-name=FAQ">
<span>Why does my domain show an "Unknown Certificate" or "Bad Gateway"?</span>
<span class="faq-icon"><i class="fas fa-chevron-down"></i></span>
</button>
@@ -447,7 +447,7 @@
<!-- Commercial -->
<div class="faq-panel" id="panel-commercial">
<div class="faq-item">
<button class="faq-question">
<button class="faq-question plausible-event-name=FAQ">
<span>Is the Odoo Enterprise License included?</span>
<span class="faq-icon"><i class="fas fa-chevron-down"></i></span>
</button>
@@ -456,7 +456,7 @@
</div>
</div>
<div class="faq-item">
<button class="faq-question">
<button class="faq-question plausible-event-name=FAQ">
<span>How can I upgrade my service?</span>
<span class="faq-icon"><i class="fas fa-chevron-down"></i></span>
</button>
@@ -469,7 +469,7 @@
<!-- Bring your Database -->
<div class="faq-panel" id="panel-migrate">
<div class="faq-item">
<button class="faq-question">
<button class="faq-question plausible-event-name=FAQ">
<span>How can I migrate my Odoo database from another service provider?</span>
<span class="faq-icon"><i class="fas fa-chevron-down"></i></span>
</button>
@@ -479,7 +479,7 @@
</div>
</div>
<div class="faq-item">
<button class="faq-question">
<button class="faq-question plausible-event-name=FAQ">
<span>Can I update my Odoo database from an older version, e.g., 14 &rarr; 19?</span>
<span class="faq-icon"><i class="fas fa-chevron-down"></i></span>
</button>