moved comment

This commit is contained in:
Cappy Popp 2021-01-07 11:26:42 -05:00
parent 4a0fd090f8
commit b0f78fb89d

View File

@ -111,7 +111,8 @@
var values = form.getValues(),
eventData = {
category: 'LinkedIn Form AutoFill',
action: 'mktoForm_' + form.getId() + ' [LinkedIn AutoFill]', // will automatically set dlv-action which we'll pass to form id to name mapper in event submit in GTM
// will automatically set dlv-action which we'll pass to form id to name mapper in event submit in GTM
action: 'mktoForm_' + form.getId() + ' [LinkedIn AutoFill]',
label: [
values.Company,
values.Industry,
@ -122,7 +123,6 @@
'gclid:' + '{{JS - GA Client ID}}',
].join(' | '),
};
console.log(eventData);
// 'eventData' automatically maps to the GTM variables 'dlv - category', 'dlv - action', etc.
window.dataLayer.push({
event: 'formLinkedInAutoFill', // MUST FIX WHEN EXPANDING AS EVENT ONLY FIRES ON DEMO PAGE