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

Avatar

Avatar

hbruinsma

Avatar

hbruinsma

hbruinsma

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

StewSchilling

MVP

Avatar

StewSchilling

MVP

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

hbruinsma

Avatar

hbruinsma

hbruinsma

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

jantzen_belliston-Adobe

Community Manager

Total Posts

1.9K

Likes

312

Correct Answer

570

Avatar

jantzen_belliston-Adobe

Community Manager

Total Posts

1.9K

Likes

312

Correct Answer

570
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?