Magento and Revenue

Hello, we are using Magento software (for e-commerce) and have installed Piwik 1.0

We have installed the code of the Piwik in the footer.

The goal is working ok and the campaigns too, but we are installed the code for the revenue and don’t work.

We have only one goal (ID:1) that is the success web that is the final web when an order is completed.

We have inserted this code in the “success” web:

<script type="text/javascript">
    <!--
  piwikTracker.trackGoal(1, <?php echo $order->getBaseSubtotal(); ?>);
  //-->
</script>

Maybe need other code?
Thank you for your help! style_emoticons/<#EMO_DIR#>/smile.gif

What do you mean by ‘it doesn’t work’ - is it order amount not printed correctly in your HTML pages, or is it not tracked properly by Piwik (but printed correctly)?

Hey,

i know this topic is a little old, but i stumbled over it a couple of days ago.

Maybe our module User Origins might be the right thing for you:

http://www.mavelopment.com/index.php/userorigins.html

kind regards,
mavi