Passing additional identifier value in Analytics | Community
Skip to main content
Level 2
June 5, 2023
Solved

Passing additional identifier value in Analytics

  • June 5, 2023
  • 1 reply
  • 547 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by yuhuisg

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()

Reference: https://experienceleague.adobe.com/docs/experience-platform/tags/client-side/satellite-object.html?lang=en#track

1 reply

yuhuisg
Community Advisor
yuhuisgCommunity AdvisorAccepted solution
Community Advisor
June 5, 2023

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()

Reference: https://experienceleague.adobe.com/docs/experience-platform/tags/client-side/satellite-object.html?lang=en#track