Best Practice - satellite.getVar

Avatar

Avatar
Validate 10
Level 3
sanmeetw1519854
Level 3

Likes

19 likes

Total Posts

40 posts

Correct reply

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

Avatar
Validate 10
Level 3
sanmeetw1519854
Level 3

Likes

19 likes

Total Posts

40 posts

Correct reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
sanmeetw1519854
Level 3

18-05-2017

Hi,

What is a better practice for using satellite.getVar in DTM interface?

1. creating a new Data Element and within the custom script calling in _satellite.getVar() (assuming setVar has already been defined on the site)

and then calling the data element using % syntax on various page load/event based rules?

OR

2. using a custom script in event based/page load rules and accessing the data element

Also, i have a doubt - if we have defined a data element using _satellite.setVar outside the adobe DTM interface, can we still access it using %withing Adobe DTM without storing _satellite.getVar in a new Data Element?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct reply

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

18-05-2017

Hi Sanmeet,

Whenever possible, you should define data elements inside the DTM UI. This will ensure compatibility throughout the product. Also, you should try and use the %data_elelment_name% syntax inside the DTM UI when possible.

If you are using custom scripts, you may need to make use of the _satelite.getVar() function to retrieve that value, since the % syntax will not work inside the custom scripts section. I believe the %data_element_name% syntax will work in the UI even if the data element was set outside of the UI. The data element may not show up in the auto populate fields, but you should be able to manually type it.

Thanks,
Jantzen

Answers (2)

Answers (2)

Avatar

Avatar
Validate 10
Level 3
sanmeetw1519854
Level 3

Likes

19 likes

Total Posts

40 posts

Correct reply

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

Avatar
Validate 10
Level 3
sanmeetw1519854
Level 3

Likes

19 likes

Total Posts

40 posts

Correct reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
sanmeetw1519854
Level 3

18-05-2017

Hi Jantzen,

That was really helpful

Thanks,

Sanmeet

Avatar

Avatar
Validate 1
Level 4
Løjmann
Level 4

Likes

35 likes

Total Posts

117 posts

Correct reply

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

Avatar
Validate 1
Level 4
Løjmann
Level 4

Likes

35 likes

Total Posts

117 posts

Correct reply

42 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Løjmann
Level 4

18-05-2017

Hi,

I'm not sure I understands your request. What is it you want to archive?

/Løjmann