Web and Mobile Events Best Practices
Events tell FirstHive what customers do on your website and apps. They power real-time journeys, experiences, segments and conversion tracking, so getting them right matters.
Start with an event plan
Before you add any tracking code, write down:
- The questions you want to answer and the journeys you want to trigger, for example cart abandonment or a quote started but not finished.
- The events you need for those, and no more. Most businesses need 10 to 25 key events.
- The properties for each event, with their type and an example value.
| Event | When it fires | Key properties |
|---|---|---|
product_viewed | A product page loads | product_id, category, price |
add_to_cart | An item is added to the cart | product_id, quantity, price |
checkout_started | The checkout page loads | cart_value, item_count |
purchase | The order is confirmed | order_id, total_amount, currency |
signed_up | An account is created | method |
See Understanding Events in FirstHive.
Name things consistently
- Use one naming style everywhere, for example lower-case
object_action:cart_viewed,quote_started. - Use the same event name on web and app for the same action, so segments and journeys work across both.
- Keep property names and types the same across events:
product_idis always a string,pricealways a number. - Don’t put values in event names: use
category_viewedwith acategoryproperty, notshoes_viewed.
Identify users
- Call identify when the customer logs in or signs up, with the same customer ID you use in your other data. This links their anonymous browsing to their profile.
- Send email or mobile number with identify only where you have consent to.
- Reset on logout on shared devices so the next person’s activity isn’t added to the wrong profile.
Website tracking
- Install tracking with the Tag Manager so marketing can add events without code releases. See Choosing Your Tracking Method.
- Push ecommerce and form data to a data layer instead of reading it from the page.
- Set up ecommerce tracking and goals for your key conversions.
- Exclude internal traffic and test environments.
Mobile app tracking
- Integrate the Android, iOS or React Native SDK, and add push credentials if you’ll send push notifications.
- Track screen views and the same key events as the website.
- Ask for notification permission at a useful moment, not on first launch.
- Set up deep links so push notifications and experiences can open the right screen.
Test before launch
- Use a test account and perform each tracked action.
- Check that each event arrives with the right properties, using Real-Time Reports and the Visits Log.
- Log in and check the events appear on your test customer profile.
- Recheck tracking after every website or app release.
Common mistakes
| Mistake | Effect | Fix |
|---|---|---|
| Different event names on web and app | Journeys and segments miss customers | Use one event dictionary. |
| No identify on login | Behavior stays anonymous | Call identify with the customer ID. |
| Prices sent as text, such as “$1,299” | Filters and revenue don’t work | Send numbers, with currency in its own property. |
| Tracking every click | Noisy data, hard to use | Track the actions that matter. |
© 2026 FirstHive. All rights reserved.