Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › Implementing event parameters in Google Tag Manager API: A step-by-step guide › Reply To: Implementing event parameters in Google Tag Manager API: A step-by-step guide
-
Sure. You’re on the right track. Your parameters are arranged as an array. Take a look at this example. You’ve got a “map” type, within are elements that each have a “type,” “key,” and “value.” To slide your variable into the value, keep going the way you’ve been using in GTM UI. So, something like {{DataLayer-Ecommerce}}. You’re nearly there, hang in there!