Custom event tracking and conversion goals
Custom events record the actions visitors take on your site, such as a click on a button or a submitted form. Goals turn those actions into conversions you can count.
What is a custom event?
A pageview tells you that someone opened a page. An event tells you what they did there. In Loogika you can track clicks, form submissions and any other action you define.
You send an event with one line of JavaScript. To track clicks without code, you add a data attribute to the HTML element. Clicks on outbound links are recorded automatically.
An event can carry properties, such as a plan name or an order value. You can filter your reports by those properties.
What is a goal?
A goal is a result you want from a visit, for example a sent contact form. A goal can be a visit to a page or a custom event. An event goal can also require a property value, such as purchases of one specific plan.
Loogika reports the number of completions and the conversion rate for each goal. The number of goals is not limited.
Which events should you track first?
Start with the actions that bring in orders or leads. For a shop, that is a completed order. For a service company, it is a sent contact form or a click on the phone number.
Add supporting events later. Newsletter sign-ups and file downloads are common examples.
Do custom events count toward your plan?
Yes. Loogika prices plans by monthly events, and both pageviews and custom events count.
How do you set up custom events and goals in Loogika?
To track a click without JavaScript, add the attribute data-loogika-event with an event name to the element. Add properties with data-loogika-prop- followed by the property name. For actions that are not clicks, such as a payment callback, call window.loogika.event() with a name and an optional object of properties.
Loogika accepts event names of up to 256 characters. Properties must be one flat object with text and number values, and the object can hold up to 2,048 characters as JSON. Loogika rejects an event that is too large and does not shorten it. See the event tracking guide for code examples.
To create a goal, click Add Goal, choose a type and enter the value. The six types are Page, Event, Outbound Link, Button Click, Form Submit and Copy. Button clicks, form submissions and copy events must first be turned on in Site Settings, and a session counts once per goal. The goal setup guide covers patterns and filters.
Questions about events and goals
Do custom events use cookies?
No. Loogika tracks events without cookies, the same way it tracks pageviews.
Related features
Try Loogika on your own site
The free trial lasts 7 days. You add one script tag to get started.
Start your free trial