Frontleaf Destination
Browser Tracking
If you’re using our client-side javascript library (Analytics.js), we will begin loading Frontleaf on your page through your Segment snippet within minutes after you enable it on your project destinations page.
Frontleaf uses our page
, identify
, track
, and group
methods.
Page
For Frontleaf to work effectively with Segment page calls, you will need to specify the type of interaction that each call represents.
Frontleaf supports three options for categorizing page calls by interaction type:
- The optional
category
property. For more information on this property, see the Ecommerce spec docs. In the following example, “Product” is the category and “Shoe” is the page name. Segment will transform this category to “Viewed Product Page” before sending it to Frontleaf.
analytics.page('Product', 'Shoe');
- The optional
name
property. To get the maximium value out of using the name property, Frontleaf recommends that the name value maps to a type of interaction rather than a specific page, e.g. “Lesson” rather than “Lesson on Operating the Acme XT-1000”. Segment will transform the name you pass in the same way it does forcategory
above - “Lesson” will become “Viewed Lesson Page” before it gets sent on to Frontleaf. For more information on this property, see our name docs.
analytics.page('Lesson');
- A custom URL filter (configured for you by Frontleaf) that interprets part of the page path (and/or query parameters) as the interaction type. This option can work well for “object-verb” types of URL schemes, e.g.
/lesson/123/view
and/lesson/456/view
both get labeled as a/lesson/view
action (which you can then relabel in the UI). Contact Frontleaf support for assistance with this option.
This page was last modified: 14 Jul 2020
Need support?
Questions? Problems? Need more info? Contact Segment Support for assistance!
Was this page helpful?
Get started with Segment
Segment is the easiest way to integrate your websites & mobile apps data to over 300 analytics and growth tools.