Can I have trackevent parameters names dynamically created? | Community
Skip to main content
Umamaheswari_Yakkala
New Participant
February 2, 2022
Solved

Can I have trackevent parameters names dynamically created?

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

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Umamaheswari_Yakkala
Umamaheswari_YakkalaAccepted solution
New Participant
February 4, 2022

Resolved. 

 

Using Es6+ 

 

var attName="dynamicName";

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

 

Thank You

1 reply

Umamaheswari_Yakkala
Umamaheswari_YakkalaAuthorAccepted solution
New Participant
February 4, 2022

Resolved. 

 

Using Es6+ 

 

var attName="dynamicName";

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

 

Thank You

Translate