Highlighted

Custom Event Category enhanced ecommerce not UX

Silver Contributor
Silver Contributor

About enhanced ecommerce events such as product_click, add or remove, it launch a event with UX category, click action and results or add to cart or remove to cart label.


is it possible to configure the UX to a own category?

 

I've tried this:

 

//PRODUCT_CLICK
utag.link({
"enh_action" : "product_click", // enhanced e-commerce action
"event_category" : "ecommerce", //my event category
"event_action":"click",//my event action
"event_label":"result list", //list from which selected the product
"prod_id" : ['1a','2b'], // product id
"prod_name" : ['testA','testB'], // product name
"prod_brand" : ['nike', 'adidas'], // product brand
"prod_var" : ['a','b'], // product variant
"prod_cat" : ['shoes', 'socks'], // product category
"prod_price" : ['23.39', '11.00'], // product price
"prod_quan" : ['1', '2'], // product quantity
"prod_pos" : ['1','2'], // product position
"prod_color" : ['blue','grey'], // product color as a custom dimension
"prod_metric" : ['23.39','11.00'] // product-level metric
});
 
//add to cart
utag.link({
"enh_action" : 'add', // enhanced e-commerce action
"event_category":"ecommerce",
"event_action":"product_adds_to_cart",
"prod_id" : ['1a'], // product id
"prod_name" : ['testA'], // product name
"prod_brand" : ['nike'], // product brand
"prod_var" : ['a'], // product variant
"prod_cat" : ['shoes'], // product category
"prod_price" : ['23.39'], // product price
"prod_quan" : ['1'], // product quantity
"prod_pos" : ['1'], // product position
"prod_color" : ['blue'], // product color as a custom dimension
"prod_metric" : ['23.39'] // product-level metric
});

 

but it launched two different events one UX with the product and the another without product.

 

 

EVENT 1

ec: UX

ea: click

el: results  

pa: click  

pr1id: 3375 - 1  

pr1nm: name of product  

pr1br: brand of product  

pr1va:  

pr1ca: category of product  

pr1pr: 20.30  

pr1qt:  

pr1cc:  

pr1ps: 5  

 

EVENT 2

ec: ecommerce

ea: product_list_click

 

I would like have an unique event with the product and the custom category and action. Just like this:

 

ec: ecommerce

ea: product_list_click

el: Search Results

pa: click

pr1id: 3375 - 1

pr1nm: name of product

pr1br: brand of product

pr1va:

pr1ca: category of product

pr1pr: 20.30

pr1qt:

pr1cc:

pr1ps: 5

 

 

Is it possible?

 

Thanks.

 

Sara.

3 REPLIES 3
Highlighted

Custom Event Category enhanced ecommerce not UX

Employee Emeritus

@sara,

 

There's a setting called "Auto Send Events" in your Google Universal Analytics "Tag Configurations".  You can set this to "Off" so it will remove EVENT1 for you.'

 

Hope this is what you are looking for.

Google Universal Analytics Basic Configurations

 

Highlighted

Custom Event Category enhanced ecommerce not UX

Silver Contributor
Silver Contributor
Thanks!!! It's works!!!
Highlighted

Custom Event Category enhanced ecommerce not UX

Silver Contributor
Silver Contributor

I wish to add that when your setting up the Add to cart and remove from cart events for Enhanced Ecommerce, its better to manually write the GA code rather than calling the utag.link function. The reason why I'm saying this is because each time the utag.link() function is called it would cause each proceeding GA event to be fired multiple times. This implies that if someone has addred 3 events to the shopping cart the 4th click on add to cart would fire 4 times.

Therefore if you manually fire the GA event like, "ga("send","event","event category","event action","event label"); then it would fire only once at all times.