_satellite.track() and passing related information | Community
Skip to main content
Level 2
October 2, 2018
Solved

_satellite.track() and passing related information

  • October 2, 2018
  • 3 replies
  • 13653 views

The Launch documentation suggests that the _satellite.track() function can be used to pass along extra information in the syntax:

_satellite.track('contact_submit', { name: 'John Doe' });

However when I access this detail object using %event.detail%, the element is resolved as "[object Object]"

Have I done something wrong or is this an error in the documentation?

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 atusingh17

Can you try using %event.detail.name% to access the detail passed in _satellite.track() function ?

3 replies

atusingh17Adobe EmployeeAccepted solution
Adobe Employee
October 2, 2018

Can you try using %event.detail.name% to access the detail passed in _satellite.track() function ?

Level 4
October 2, 2018

As AtulSingh mentioned above, you're getting [object Object] because the result is not a single string value, but rather an Object = { name: 'John Doe' }

If you want to get the value 'John Doe' , you can use %event.detail.name% to retrieve the value of name.

Level 2
October 3, 2018

Ah perfect, yup that works! Thanks