Just place two lines of code above the Visitor Stats 2 include line. I use this on my 'thankyou.php' page, after the sale has gone through, and I still have access to all the relevant sale information.
The code:
This adds an order of $79.95 into Visitor Stats, which also records all the visitor data, such as country, language, visits etc.
All you have to do now is check your Visitor Stats admin for sales!
Importing multiple items
To add more than one item, we need to add a few more lines of code.
To use, insert this code into your page (before the Visitor Stats include). You can use arrays, and you must put in all feilds.
$vs_order="order"; OR use your order id: $vs_order=$customer_order_id;
$vs_item_qty=$quantity_ordered_of_this_item;
$vs_item_name=$name_of_item_ordered;
$vs_item_price=$price_of_item_ordered;
Testing Multiple Orders
Test this using a quick array (put before the code above):
Open your browser and go to the page you put the import sales code on (usually the 'thank you' page).
Then open your Visitor Stats Admin and check that your sales worked ok.