jQuery(document).on('gform_confirmation_loaded', function(event, formId){ window.dataLayer = window.dataLayer || []; window.dataLayer.push({ 'event': 'gform_confirmation_loaded', 'Form ID': formId }); console.log('Gravity Forms confirmation loaded for:', 'gform_' + formId); });