Emit "Lead Captured" eventUpdated 30/04/2019


Generates a Milestone event called "Lead Capture" when people click in Facebook Lead Ads


if(changes && changes.is_new && user.email){
  track("Lead Captured",{
    lead_source:"Website",
    lead_capture_campaign: "Tracking Plan Ebook",
    lead_capture_method: "Facebook Lead Ads Campaign",
    event_type: "Gated Content",
    email: user.email   
  });
}