Mobile app version of vmapp.org
Login or Join
Phylliss660

: Sku code as description in Google Analytics In the Google Analytics ecommerce tracing script you must provide for every item and SKU code. I have this code for every product I'm selling and

@Phylliss660

Posted in: #GoogleAnalytics #Javascript

In the Google Analytics ecommerce tracing script you must provide for every item and SKU code. I have this code for every product I'm selling and up until now I have always provided it in the _addItem method.

But when reviewing that data in the ecommerce module of Google Analytics, I have no real, no readable data about my SKU sales. I know what product has been sold, due to the product name I provide. But when clicking through to the SKU-level, I know nothing more, since all I can see there are SKU codes.

Is it possible and wise to replace the SKU code with the following template?

"product-name colour-name size-name"


This way, it should still be a unique field, but more readable afterwards.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Phylliss660

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kaufman445

Sure, just pass the name into the addItem method:-

ga('ecommerce:addItem', {
'id': '1234', // Transaction ID. Required.
'name': 'Fluffy Pink Bunnies', // Product name. Required.
'sku': 'DD23444', // SKU/code.
'category': 'Party Toys', // Category or variation.
'price': '11.99', // Unit price.
'quantity': '1' // Quantity.
});


How you can customise/extend this will largely depend upon the ecommerce platform you are using and what attributes you can pass in via addItem.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme