Tracking events

Convertly is designed to give you flexibility in tracking various events on your site.

You can send any analytics event with any properties relevant to your tracking needs.

- Use natural language and specific keywords for event names

- Events such as `USER_SIGN_UP`, `USER_DELETE_ACCOUNT`, and `USER_VIEWED_DASHBOARD` are good examples of clear, concise event naming that will help AI understand your intent.

Tracking an Event

To record an event, use the `track` method of the `convertly` object you initialized:

convertly.track({ event: 'EVENT_NAME', properties: { key: 'value' } });

For example, to track when a user churns from your service:

convertly.track({ event: 'USER_CHURN', properties: { plan: 'Free' } });

Logging a page view

To record a page view, use the 'page' method on the convertly CDN or NPM module

convertly.page({ page: '/home', properties: { plan: 'Free' } });

Last updated