Expand my Community achievements bar.

SOLVED

Can I have trackevent parameters names dynamically created?

Avatar

Community Advisor
adobe.target.trackEvent({ 
    "mbox": "clicked-cta", 
    "params": { 
        "param1": "value1" 
    } 
});

 

Hi Team ,

 

"Param1" from above snippett is that something possible to use dynalic name in trackevent? If yes please guide me.

 

Thank You

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Resolved. 

 

Using Es6+ 

 

var attName="dynamicName";

const parameter={[attName]:"Testing"}

 

Thank You

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Resolved. 

 

Using Es6+ 

 

var attName="dynamicName";

const parameter={[attName]:"Testing"}

 

Thank You