Barelytics Documentation

Custom Events and Funnels

Track key actions and convert them into funnel analysis.

Custom event tracking

Use custom events for important actions such as signup starts, purchases, or feature usage.

JavaScript API

After installing the script, call:

window.barelytics.track('event_name', { key: 'value' })

Example:

window.barelytics.track('signup_started', {
  plan: 'pro',
  source: 'pricing_page'
})

Queue events before script loads

If events can fire before script initialization, queue them:

<script>
  window.barelytics = window.barelytics || [];
  window.barelytics.push(['track', 'signup_started', { plan: 'pro' }]);
</script>

Automatic click events

Barelytics can automatically capture click goals from markup:

<button data-barelytics-goal="cta_click">Start free trial</button>

This sends a click event with click metadata so you can use it in funnels.

Build funnels in the dashboard

Go to your website dashboard and use the Funnels card.

Create a funnel

  1. Click Create Funnel.
  2. Enter funnel name.
  3. Add 2 to 10 steps.
  4. Save.

Step types

  • Pageview: matches URL containing a path pattern.
  • Custom Event: matches an exact event name you track via window.barelytics.track(...).
  • Click: matches click selector values.

Analyze and iterate

Open a funnel to see:

  • Visitors at each step
  • Step drop-off count and %
  • Overall conversion %

Use date presets (Live, Yesterday, Last 7, Last 14, Last Month) to compare short-term and medium-term performance.

On this page