You could capture the submitted data on a separate thank you page (which is always better if you want to set/track goals).
You could to the following:
1) make sure you set your redirect url for your form with querystring params with macro's to pass your filled in form values (Forms > your form > general > redirect to url >
{% GetResourceString("SomeLocalizationString.ThankYou.Url")|(identity)GlobalAdministrator%}">
3) then add a javascript webpart to the page which gets & pushes the values
for example:
(function() {
var pt = $('#gtm-prospecttype');
var ct = $('#gtm-concepttype');
if ($.trim(pt.val()).length && $.trim(ct.val()).length) {
dataLayer.push({
'proparticulier': pt.val(),
'typeconceptbrochure': ct.val(),
'event' : 'conversion'
});
}
})();
I know this is a lot of fiddling with several things, but I've had some support from Kentico and there is no better way yet. Give it a try, we've got some examples working.
HINT: It would be a great asset if this was more integrated into the Kentico product ;-)
KR,
Dennis