๐ญ Send events
Once your Fullog is running, the next step is to start sending events.
By default, Fullog automatically captures the following frontend events:
-
Pageviews, including the URL.
-
Clicks, including the text of the element.
Single-page apps and pageviews
Don't worry, Fullog automatically sends @analytics/pageview
events upon page load. For single-page apps, this means a @analytics/pageview
event is sent every time your route changes. It operates using JavaScript's History API (pushstate).
Custom Events
You can send custom events using track:
fullog.track('project created')
Tip: It's beneficial to adopt the [object][action]
structure for naming your events. Here, [object] represents the subject of the activity, while [action] denotes the activity. Think along the lines of project initiated, user registered, or invitation dispatched.