From eb48f4235d09f79787652be1dfefedac6b0d31c7 Mon Sep 17 00:00:00 2001 From: Pareesh Gupta Date: Wed, 6 Sep 2023 13:31:38 +0530 Subject: [PATCH] fix: Add rum tracking to form block --- blocks/form/form.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blocks/form/form.js b/blocks/form/form.js index a5a3949a..3c270839 100644 --- a/blocks/form/form.js +++ b/blocks/form/form.js @@ -1,4 +1,5 @@ import { addInViewAnimationToSingleElement } from '../../utils/helpers.js'; +import { sampleRUM } from '../../scripts/lib-franklin.js'; function createSelect(fd) { const select = document.createElement('select'); @@ -46,6 +47,7 @@ async function submitForm(form) { body: JSON.stringify({ data: payload }), }); await resp.text(); + sampleRUM('form:submit'); return payload; }