Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

ecommerce tracking problems with double quotes in product name or category name (no replies)

$
0
0
Hello,

I want to track products and categories in ecommerce tracking with double quotes in their names. I have Piwik 2.3.0.
Let's say article is called 'Käse' and the category is called 'old "Käse"'. The problem is that no ecommerce items are tracked when a double quote is in the product name or product category.

The ecommerce tracking script looks like this:
_paq.push(['addEcommerceItem',"1111test","Käse","old "Käse"",10,1]);
It is not tracked in Piwik as an ecommerce item. If I remove the double quote from the category name it tracks it as an ecommerce item.
I also tried to use single quotes around the values, but the same result.

If I urlencode() Product name and Product category it gets tracked with this code:
_paq.push(['addEcommerceItem',"1111test","K%C3%A4se","old+%26quot%3BK%C3%A4se%26quot%3B",10,1]);
But the result in Piwik looks terrible:
Abandoned Cart
 Revenue left in cart:  15.95 € , Quantity: 1
  1111test: K%C3%A4se (old+%26quot%3BK%C3%A4se%26quot%3B) , Quantity: 1, Price:  10 €
rawurlencode() the same.
There is a HTTP GET request with the ec_items value "GET /piwik/piwik.php?idgoal=0&revenue=15.95&ec_items=%5B%5B%221111test%22%2C%22K%25C3%25A4se%22%2C%22old%2520%2526quot%253BK%25C3%25A4se%2526quot%253B%22%2C10%2C1%5D%5D&idsite=1
this ec_items is completely missing when I don't rawurlencode() product name and product category that contain double quotes.

Can you point me to the tests where I can add such a case to verify it? I am a bit lost with the tests right now where to add it. Or can someone else confirm this problem?

Viewing all articles
Browse latest Browse all 4243

Trending Articles