Hi,
I have set form successful events using _satellite.track() function along with additional information.
I want to capture additional information as eVars when this event occurs.
For example, I want to capture form name as eVar from below
_satellite.track('form_success', {formName: 'abc' });
Please suggest ways.
Views
Replies
Total Likes
Given your _satellite.track('form_success', {formName: 'abc' }) example, you can access the {formName: 'abc' } object via the %event.detail% data element.
Example:
// in your webpage
_satellite.track('form_success', {formName: 'abc' });
// in your Launch Rule:
// event type: Direct Call, event identifier: "form_success"
// then, in the "Set Variables" action:
eVar10: %event.detail.formName% // sets eVar10 = "abc"
// or in custom code
s.eVar10 = event.detail.formName; // sets eVar10 = "abc"
// notice that you don't need to use the %..% notation nor _satellite.getVar()