Many sites are built in a page builder or a CMS where adding JavaScript is awkward or not allowed. You can still track the actions that matter. Reveata reads a few HTML attributes and records goals from them, so a marketer can add tracking by editing the markup.
Clicks on buttons and links
Add data-reveata-goal to any element. A click on it, or on anything inside it, records the goal:
<button data-reveata-goal="signup">Create account</button>
<a href="https://example.com/demo" data-reveata-goal="book_demo">Book a demo</a>Goal names use lowercase letters, digits, _, - and :. Other characters become _, so Book Demo becomes book_demo.
Properties to tell clicks apart
Add data-reveata-goal-<name> attributes. Dashes in the name become underscores:
<a href="https://example.com/signup" data-reveata-goal="signup" data-reveata-goal-placement="hero">Start free</a>
<a href="https://example.com/signup" data-reveata-goal="signup" data-reveata-goal-placement="footer">Start free</a>Now one signup goal can be broken down by placement in the goal's properties, instead of becoming two goals. Up to 20 properties per goal, with string values.
Forms
Put the attribute on the form itself and the goal counts when the form is submitted, not when something inside it is clicked:
<form action="/subscribe" data-reveata-goal="newsletter_signup">…</form>To record every form on the site without editing each one, add the extras script with data-forms. It sends form_submit with the form's id (or name) and the path it posts to. What people type is never read or sent.
Sections scrolled into view
data-reveata-scroll records a goal the first time at least half of an element is visible:
<section data-reveata-scroll="saw_pricing_table">…</section>With the extras script, scroll goals also take a share of the element that must be visible and a time it must stay visible. See Custom goals.
Downloads and outbound links
- Outbound links are recorded automatically: clicks on links to other websites appear in the outbound links report.
- File downloads need the extras script with
data-downloads. It recordsfile_downloadwith the file's address for common types such as pdf, zip and csv, or the list you give.
With a tag manager
If your site loads scripts through Google Tag Manager, the Reveata tag template loads the script and sends goals there instead. See Install with Google Tag Manager.
Check it works
Click the element on your live site, then open Realtime: the goal appears in the live feed within seconds. If not, add data-debug="true" to the snippet and read the browser console. See Why events don't show up.
Use the goals
Once goals arrive, they show next to the channels and pages that led to them, can be funnel steps and can trigger alerts. A click goal on your main call to action, compared by entry page, tells you which pages persuade people to take the next step.
What to do next
- Add a goal to your one or two main calls to action today.
- Use a
placementproperty rather than separate goal names for the same action. - Build a funnel from them: Funnels.
Do it in Reveata
In the dashboard
- Add the attributes to your markup and publish.
- Click the element and watch it arrive in Realtime.
- Open Goals, select the goal and look at its properties.
With the API
The values of one goal's placement property for the last 30 days:
curl -G https://reveata.com/api/v1/websites/example.com/goals/signup/properties \
-H "Authorization: Bearer $REVEATA_TOKEN" \
--data-urlencode "period=last_30d"With an AI assistant
With the MCP server connected, ask:
Use get_goal_properties for the signup goal over the last 30 days and tell me which placement gets the most completions, then use get_breakdown on entry_page with a filter on goal is signup.