E-commerce Integration Help?


I’m trying to setup eCommerce tracking for the site. I’ve been going through the docs but what I’m missing is a high level overview of how it would all work with the url builder and the eCommerce tracking code.

So here is what i’ve done so far:

  1. Created a campaign url so it goes to the page /index.html

  2. Then I modified the purchase page (thank you page) that they get transferred too after a successful purchase, and I put this piwik tracking code:

<!-- Piwik --><script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://www.site.com/piwik/" : "http://www.site.com/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
// add the first product to the order
"9780786706211", // (required) SKU: Product unique identifier
"Endurance: Shackleton's Incredible Voyage", // (optional) Product name
"Adventure Books", // (optional) Product category. You can also specify an array of up to 5 categories eg. ["Books", "New releases", "Biography"]
8.8, // (recommended) Product price
1 // (optional, default to 1) Product quantity
} catch( err ) {}
</script><noscript><p><img src="http://www.site.com/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript><!-- End Piwik Tracking Code -->

The problem is that under referrers -> campaigns and then the date, i do not see anything that shows the above item was purchased.

Can someone guide me on what I am doing wrong here?

Ok so i figured out i was addeding it to the cart but I wasn’t actually placing the order.

Now that i’ve tested this, is it possible to remove an order from the ecommerce history? so i can remove all these tests/fake orders?

The way I would do it, is fire another purchase, but use negatives for qty and price–the only other way would be a messy bit of SQL surgery