Fixed tracking code and added abandoned carts and conversion tracking

We needed this support in our site, so we added it and thought the changes might be useful to others.