Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

_satellite.track() and passing related information

Avatar

Avatar
Contributor
Level 2
stevew79063868
Level 2

Likes

12 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Contributor
Shape 1
Give Back
Validate 1
Boost 5
View profile

Avatar
Contributor
Level 2
stevew79063868
Level 2

Likes

12 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Contributor
Shape 1
Give Back
Validate 1
Boost 5
View profile
stevew79063868
Level 2

02-10-2018

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 5
Employee
atuls41837987
Employee

Likes

8 likes

Total Posts

19 posts

Correct Reply

14 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Boost 5
Employee
atuls41837987
Employee

Likes

8 likes

Total Posts

19 posts

Correct Reply

14 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile
atuls41837987
Employee

02-10-2018

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

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 4
gflare
Level 4

Likes

33 likes

Total Posts

52 posts

Correct Reply

18 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
gflare
Level 4

Likes

33 likes

Total Posts

52 posts

Correct Reply

18 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
gflare
Level 4

02-10-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.

Avatar

Avatar
Contributor
Level 2
stevew79063868
Level 2

Likes

12 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Contributor
Shape 1
Give Back
Validate 1
Boost 5
View profile

Avatar
Contributor
Level 2
stevew79063868
Level 2

Likes

12 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Contributor
Shape 1
Give Back
Validate 1
Boost 5
View profile
stevew79063868
Level 2

03-10-2018

Ah perfect, yup that works! Thanks