Skip to main content

Form related events

EventFactory has a method to create form-related events - createFormEvents.

This method creates three recommended events:

  • generate_lead
  • form_start
  • form_submit

You could use it like this:

// Define your configconst eventConfig = {  dataset: "analytics_XXXXXX",  incrementalTableName: "events_XXXXXX",};// Create all recommended eventslet events = ef.createFormEvents();// Publish eventsevents.forEach((event) => event.publish());