No cookies · No consent banner · Data stored in EuropeNo cookies · GDPR · EU data

English
Custom events

Track conversions from your JavaScript

When a URL or a click isn’t enough, call _ovt() from your code and each conversion appears with its source, campaign, country and device.

What you get

Any action

A payment confirmed, a sign-up, a form step, a video watched to the end: whatever your code knows.

With value

Give the goal a value in euros and see how much each channel and campaign brings in.

Full attribution

Every conversion with the page, the channel, the country and the device of the visit.

Set it up step by step

  1. Create a custom goal

    Go to Settings → Goals → New goal → “Custom”. Give it a name and a key:

    • Letters, numbers and _ . : - (up to 64 characters), for example purchase or signup_step_2
    • Optional: a value in euros for each conversion
    New custom goal with name, key and value
  2. Call _ovt() with the key

    At the moment the action happens, on any page with the tracking code:

    _ovt('purchase');
  3. Only when it really happens

    For example, after the server confirms that a form was sent:

    form.addEventListener('submit', async (e) => {
      e.preventDefault();
      const res = await fetch('/api/contact', { method: 'POST', body: new FormData(form) });
      if (res.ok) _ovt('contact_sent');
    });
  4. See your conversions

    In Goals you have every conversion with its daily evolution and the pages, channels, countries and devices it came from.

    Goal detail with conversions by channel

Frequently asked questions

Does every call count?

Yes, each call counts one conversion. Call it when the action is confirmed, not on the click.

Can I call it from Google Tag Manager?

Yes: a Custom HTML tag with <script>_ovt('your_key');</script> on the trigger you want.

And for online stores?

The WooCommerce and PrestaShop integrations already send orders with their value, checkout, cart, coupons and searches, with no code.

Start measuring in 5 minutes

Try it free for 7 days. No cookies, no banners, no credit card.

Start your free trial