Skip to content

Commit

Permalink
event tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
learyjk committed Aug 22, 2024
1 parent 839cf58 commit b081ed5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/form-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
const marketoFormIndex = 0;
let marketoFormLoading = false;

// For Event Tracking
const EVENT_NAME = "generate_lead";
const FORM_TYPES = {
GET_DEMO: "get_demo",
Expand All @@ -30,7 +31,6 @@ const FORM_TYPES = {
BETA_SIGNUP: "beta_signup",
NO_FORM_TYPE: "no_form_type",
};

const FORM_ID_TYPE_MAP = {
1: FORM_TYPES.NO_FORM_TYPE,
3: FORM_TYPES.GATED_ASSET,
Expand Down Expand Up @@ -111,7 +111,6 @@ function loadMarketoForm(form) {
formType: formType,
emailAddress: form.vals().Email,
});

window.dataLayer.push({
event: EVENT_NAME,
formID: formId,
Expand Down

0 comments on commit b081ed5

Please sign in to comment.