If a successful order is placed, what needs to be filled into the JS code below for it to populated accordingly?
piwikTracker.trackEcommerceOrder(
“A10000123”, // (required) Unique Order ID
35, // (required) Order Revenue grand total (includes tax, shipping, and subtracted discount)
30, // (optional) Order sub total (excludes shipping)
5.5, // (optional) Tax amount
4.5, // (optional) Shipping amount
false // (optional) Discount offered (set to false for unspecified parameter)
);
and now add to the following line to the piwik tracker code
piwikTracker.trackEcommerceOrder( "YOUR ORDER ID", ORDER TOTAL $$$, ORDER SUBTOTAL $$$ (or leave empty), ORDER TAX $$$ (or leave empty), ORDER SHIPPING $$$ (or leave empty), DISCOUNT $$$ (or set to false));
tracker.setCookieDomain('*.oursite.com'); // Same cookie as: secure.chocoley.com,
// if this is the checkout-thankyou-page
[b]INSERT LINE FROM ABOVE HERE!!![/b]
// END if this is the checkout-thankyou-page
piwikTracker.trackPageView();
I have some questions I hope you would be able to answer:
Where would you find the codes for Order ID, Order TOTAL $$$, etc?
I have a main domain that is used to track visitors, then when users are prompted to buy a product they are sent to Volusion (ecommerce software) servers. Would code state above be on both of the sites?
I’ve updated the conversion code on the thank you page, but I’m still having the problem with Piwik to where data is not being tracked. Btw, the code is supposed to track a main domain and subdomain.
I’m not sure what the first statement meant. What does the “for each item” loop mean? The line mentioned is for one specific item. I’m going to add more over time as soon as everything starts working properly.
These are the values provided by the e-commerce tracking software:
Order Array Contents
Order[0] = Order ID
Order[1] = Unused
Order[2] = Payment Amount
Order[3] = Affiliate Commisionable Value
Order[4] = Sales Tax
Order[5] = Total Shipping Cost
Order[6] = Billing City
Order[7] = Billing State
Order[8] = Billing Country
OrderDetails Array Contents
OrderDetails[X][0] = Order ID
OrderDetails[X][1] = Order Detail ID
OrderDetails[X][2] = Product Code
OrderDetails[X][3] = Product Name
OrderDetails[X][4] = (unused)
OrderDetails[X][5] = Product Price
OrderDetails[X][6] = Quantity