Insight
Methods for tracking custom analytics events.
By default, page view events are tracked automatically. Any interaction with our modals, meter, or any view that Pelcro displays are tracked and reported to your dashboard. If you are not using our default flows, continue reading to learn how you can trigger custom events.
track
Programmatically capture event using code. In this example, an event named “Button clicked” is triggered.
Example
window.Pelcro.insight.track("Button clicked");
You can also add custom properties to the event.
Example
window.Pelcro.insight.track("Button clicked", {
"name": "Facebook like",
"color": "Blue"
});
Default properties added with all captured events
- Event/action type
- Country
- Region
- Scroll percentage
- Time spent
- UTM tags (source, medium, campaign, content, term)
- OGP tags (article:tag, article:section, etc) - learn more here
- Ad blocking status
- Device
- Referral source
- Frequency (frequency of visitor on the site)
- Device fingerprint
- Local time
- Device
- Browser
- Referral domain
Updated about 15 hours ago