Repository navigation
v3.5.0
What's Changed
Added
datalayerfeature (#160) — one thin dataLayer layer to replace the site-localcustom_datalayercopies. Off by default behind thedatalayerflag indrupal_kit.feature_flags; its settings live in the newdrupal_kit.datalayerconfig object. With the flag on and every setting at its default it sends one thing,generate_leadafter a webform submission, by the redirect (?token=) and by the AJAX confirmation alike.status_codes,page_contextandclick_eventsadd the rest, each off until switched on.lead_form_data(all,none,keys) decides which submitted values the lead carries. A project adds its own pushes by subscribing toDataLayerEvents::COLLECTand changes a lead throughDataLayerEvents::LEAD, which also carries the submission and, like COLLECT, acacheability()for what the push depends on. Inline scripts are encoded withJSON_HEX_*. While a module namedcustom_datalayeris installed the layer sends nothing and the status report says so.drupal_kit_post_update_feature_flag_datalayer()declares the flag and the settings on a site that already has the module.drupal/webformbecomes a dev dependency and a suggestion; the module works without it.
Pull Requests
Full Changelog: v3.4.0...v3.5.0