The Insider Intelligence Every QSR & FSR Operator Needs
Get exclusive monthly insights, operator interviews, industry trends, and real strategies — straight from the team running 275+ locations across the country
(function () {
var PAGE_PATH_MATCH = "insider-intelligence";
if (window.location.pathname.indexOf(PAGE_PATH_MATCH) === -1) return;var formStartFired = false;function sendEvent(eventName, params) {
params = params || {};// --- Option A: Google Tag Manager is installed ---------------
// Requires a matching GTM Custom Event trigger + GA4 Event tag
// (see setup doc). Safe to leave in even if GTM isn't present.
if (window.dataLayer && typeof window.dataLayer.push === "function") {
window.dataLayer.push(Object.assign({ event: eventName }, params));
}// --- Option B: Direct GA4 gtag.js tag (no GTM) ----------------
// Only fires if gtag() exists on the page.
if (typeof window.gtag === "function") {
window.gtag("event", eventName, params);
}
}// 1. form_start — fires once, on first interaction with any form field
document.addEventListener(
"focusin",
function (e) {
if (formStartFired) return;
var form = e.target.closest(".elementor-form");
if (!form) return;
formStartFired = true;
sendEvent("form_start", { form_page: PAGE_PATH_MATCH });
},
true
);// 2. form_submit_success — Elementor Pro's native success event,
// fired only after the AJAX submission actually succeeds.
jQuery(document).on("submit_success", function (event, response) {
sendEvent("form_submit_success", { form_page: PAGE_PATH_MATCH });
});
})();