Expand my Community achievements bar.

SOLVED

difference between Data Element & _satellite.setVar

Avatar

Level 9

Does something like this:  _satellite.setVar('product', 'Circuit Pro');
Sets Data Element product = Circuit Pro ??

Michael_Soprano_0-1739980352563.png

 

https://experienceleague.adobe.com/en/docs/experience-platform/tags/client-side/satellite-object

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Yes, that is setting the data element.

 

Basically, you have two possibilities of defining data elements that are mutually exclusive

  1. using the Launch UX which will always require some kind of data element type (which is important, see caveat)
  2. using custom code like you have done here

Both types of data element can be referred to in extension interfaces through the percent syntax e.g., %my data element%

 

The big caveat though is

  • data elements set through setVar are not accessible through a UX data element with the same name.
    In other words: you cannot declare the data element via UX and then assign a value later through setVar
  • If you need to write custom code to define the value of a data element, use a Custom Code data element instead
Cheers from Switzerland!


View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Yes, that is setting the data element.

 

Basically, you have two possibilities of defining data elements that are mutually exclusive

  1. using the Launch UX which will always require some kind of data element type (which is important, see caveat)
  2. using custom code like you have done here

Both types of data element can be referred to in extension interfaces through the percent syntax e.g., %my data element%

 

The big caveat though is

  • data elements set through setVar are not accessible through a UX data element with the same name.
    In other words: you cannot declare the data element via UX and then assign a value later through setVar
  • If you need to write custom code to define the value of a data element, use a Custom Code data element instead
Cheers from Switzerland!