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

Is there a way to use Direct Call in custom code, e.g. _satellite function?

Avatar

Avatar
Validate 1
Level 2
hbruinsma
Level 2

Likes

11 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
hbruinsma
Level 2

Likes

11 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
hbruinsma
Level 2

21-07-2018

Hi,

Looking for the best way to set a dynamic data element using setVar right before triggering Direct Call. Can this be done? Is there a better way to do it?

Tx,

Hans

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
MVP
StewSchilling
MVP

Likes

334 likes

Total Posts

272 posts

Correct Reply

84 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Establish
Contributor
View profile

Avatar
Springboard
MVP
StewSchilling
MVP

Likes

334 likes

Total Posts

272 posts

Correct Reply

84 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Establish
Contributor
View profile
StewSchilling
MVP

21-07-2018

Hi Hans,

You may not have heard, but _satellite.track is much improved in Launch (compared to DTM).

The first big improvement is that you can trigger a rule with a call to _satellite.track AND add any additional conditions. In DTM, you could not pair conditions with a direct call rule.

The second big improvement (and the one that will help answer your question) is the ability to pass a JSON object on the call!

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

https://docs.adobelaunch.com/client-side-information/launch-object-reference

This allows you to pass any bits of context into the rule and you are guaranteed that they will be there for you in the rule's conditions and actions.

So...

Let's say that you want to grab 'name', and use it in an Adobe Analytics Set Variables action in the same rule.

If you've called _satellite.track as shown above, you can dip into the payload using data element syntax like so:

%event.detail.name%

You can use this syntax in any Launch UI field that is expecting a string or data element reference.

If you want to get at the value from within a custom condition, AA custom code, or 3rd party JS, you can reference it directly as event.detail.name.

Hope that this helps.

-Stew

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 2
hbruinsma
Level 2

Likes

11 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
hbruinsma
Level 2

Likes

11 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
hbruinsma
Level 2

22-07-2018

Thanks Stew, actually found your comment on the slack channel before seeing this one and it put me on the right track. I've been relying heavily on Tealium for the past 5 years so lately I spend a lot of time asking myself how do I do this in Launch?   I'm liking what I've seen so far in Launch.. 

Avatar

Avatar
Springboard
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

331 likes

Total Posts

2,247 posts

Correct Reply

811 solutions
Top badges earned
Springboard
Validate 500
Validate 250
Validate 100
Validate 50
View profile

Avatar
Springboard
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

331 likes

Total Posts

2,247 posts

Correct Reply

811 solutions
Top badges earned
Springboard
Validate 500
Validate 250
Validate 100
Validate 50
View profile
jantzen_belliston-Adobe
Community Manager

23-07-2018

Did Stewart's reply answer your question? If so, would you mind marking it as the correct answer?