The event library is where you manage all the event definitions you have labeled. There are several different things you can do with the event library:
- View, Edit, and Label Events
- Create Dynamic Properties
- Send Events to new Destinations
- Use the Freshpaint Time Machine Backfills and Replay Backfills to Recover Historical Data
There are four parts to an event label:
- The Event Name
- The Event Type
- The URL or CSS Selector
- Any Additional Filters
This is the name of the event and how it will show up in destinations. We highly recommend using a consistent naming convention and sticking with it. Please see our FAQ on naming events for more:
Because events in Freshpaint aren't tied to code, you can update the name of the event without needing to update any code.
This is the type of the event. Freshpaint supports four main kinds of events:
- Click - A click event is for when a user clicks part of your site.
- Pageview - A pageview event is when a user views a page on your site.
- Form Submission - When a user submits a form on your site.
- Change - When a user changes an input field on your site (Freshpaint captures the fact the field was changed, but does not capture the text the user put in the field).
Freshpaint also supports two additional additional kinds of events:
- Custom (Also known as precision events) - These are events from the precision tracked source. They're frontend events written with tracking code.
- Server - Events that come from the Freshpaint server side source.
For custom and server events, you cannot change the name of the event or add any filters.
This is a component of the event definition that ties the event definition to an action on your site.
For pageview events, the event definition is tied to your site based on the URL path. The URL path is the URL without the domain included.
CSS selectors also tie the event definition to an action on your site.
- targets all elements with both class1 and class2 set within its class attribute
- .class1 .class2
- targets all elements with class2 that is a descendant of an element with class1 within its class attribute
- div, p
- targets all <div> elements and <p> elements
- div > p
- targets all <p> elements where the parent is a <div> element
- targets all elements where the class attribute value contains example
- targets all elements where the id attribute value contains example
Filters let you narrow down the event definition you create. For example, you may limit an event definition to a specific page on your site. Checkout the docs on filters for information on what exactly you can do with them:
Through the event library page, you can also create Dynamic Properties. A Dynamic Property is an additional piece of data attached to an event definition whenever the event fires. Checkout the Dynamic Property section of the setting up properties guide for more information on them:
At the bottom of the events library page you'll see the destinations panel.
This is where you can control what destinations an event definition is sent to. To send or stop sending an event definition to a destination, just flip the toggle.
When you toggle a destination for an event definition, that will send all events going forward.
If you want to send data from before the event definition was labeled, you can use the Time Machine. Just click the Backfill button next to a destination and that will send every event in Freshpaint that matches the event definition to the destination, regardless of when the event was labeled. Checkout the docs on the Time Machine for more information:
On the top-right, you'll see an Export Events button:
You can click this button to download a CSV file which will provide you with the following information on all of your existing events:
- Event ID
- Event Name
- Event Type
- Event Destinations
- Event Configuration Criteria (if the event is an Autotrack event)
- Dynamic Properties
- Event Created at Timestamp
- Event Updated at Timestamp