E-commerce integration assistants requested

I am trying to get piwik to understand when a customer has viewed a certain product page. I have my piwik code in the page like such.

However I do not see any changes in the ecommerce tab of piwik or anything else. I figure I am:

  1. Doing this all wrong and its not being counted/added to the stats.
  2. Perhaps im looking for the results in the wrong area?

Would love some assistance, im not a developer but just trying to get this change in there.

Thank you!

Code below:


<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://www.url.com/piwik/" : "http://www.url.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);
piwikTracker.setEcommerceView(
"99999999", // (required) SKU: Product unique identifier
"Test Product Name", // (optional) Product name
"Test Category 1", // (optional) Product category, or array of up to 5 categories
20.99 // (optional) Product Price as displayed on the page
);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://www.url.com/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->


1 Like

Are you still having issues? What software are you using?