Basic Rules
- Character Limit: Event names are limited to 50 characters.
- Name Required: Events cannot be sent without a name.
Understand Event Types
We distinguish between two types of events:Property-Type Events
Simple Tracking. Sends only the name of the action.Example: “Button clicked”, “Menu opened”.
Payload Events
Advanced Tracking. Sends the name plus additional data (context).Example: “Product added to cart” (incl. product name, price, category).
Method 1: HTML Attributes (No-Code)
This is the easiest method. You simply add attributes to your HTML elements – our script handles the rest automatically.1
Choose Event Type
Decide if you just want to know IF something happened (Property), or WHAT exactly happened (Payload).
2
Add Attributes
Add the
data-bchic-event attribute to the HTML element.- Simple Event
- Event with Data (Payload)
Syntax:
data-bchic-event="NAME"3
Test
Click on the element and check your bchic Dashboard. The event should appear immediately. If not, reload the dashboard once.
Method 2: JavaScript (For Developers)
For full flexibility or dynamic applications, use the function callbchic(). This method is ideal if you have data from an API or data types (numbers, booleans) are important.
- Simple
- With Payload
Best Practices
To keep your data clean, we recommend the following conventions:Naming
Naming
Use Kebab-Case:
- ✅
newsletter-signup - ❌
Newsletter Signup
- ✅
pricing-cta-click - ❌
click
signup on Page A and register on Page B for the same action.Privacy Checklist
Privacy Checklist
Before implementing an event, ask yourself the following questions:
- Is an email address in the payload? ❌ (Forbidden)
- Is a User ID included? ❌ (Only allowed hashed or as internal ID)
- Is the data general enough? ✅ (e.g., product category instead of username)

