Visitor Stats 2 logo Advanced Features. Visitor Stats 2

How, and when, to use the advanced features of Visitor Stats 2 (a summary)

 

Visitor Stats Advanced Features offers websites a whole new dimension in visitor tracking.

Not only can you now compare your sales against your traffic, but you can also separate your products from normal pages, see your most popular sold items, watch a response (and sales) from a Google Adwords campaign and more...

This is meant to be a quick guide, a summary of these advanced features. For detailed instructions and ideas please see my Tutorials and Articles.


Jump to:
Rename Visitor / Rename a Page / Custom Pages / Set a Flag / Tracking Codes / Insert Customers / Insert Sold Items



Rename Visitor

Use this to 'Mark' a visitor, making them easier to spot, such as 'Customer 32', or 'Download Member' etc (read more)

The variable:
$real_visitor_name="Customer or Something Similar";

The code:

 



Rename a Page

Want your 'index.php' page to read as 'Home page'? Use this to set a pages 'real name', making it easier to understand what's happening on your website, e.g. 'index.php?id=32' could instead read as 'About Us'.

The variable:
$real_page_name="About Us";

The code:

 

 



Custom Pages

Use this to set certain pages as being different from normal pages, such as all 'Product Pages', or all 'Galleries' etc (read more)

The variable:
$vs_page_type="Your custom page here...";

The code:

 




Set a Visitor Flag

Use this to set certain visitors as being different, so you can identify them in VS later as a 'Customer', 'Contact Member', 'Send to Friend' etc

The variable:
$vs_flag="Your flag name here...";

The code:


 



Tracking Codes

Use this to track all visitors from a certain source, such as a 'Google Adwords campaign' etc (read more)

The variable:
$tracking_code="Your tracking code here...";
or
$tc="Your tracking code here...";

The code:


 



Automatically Insert Customers

Use this to track customers. Similar to Flag (see above), but gives much more detailed info such as order amount, a url to see the order etc (read more)

The variable:
$vs_customer="customer"; OR user your customer id: $vs_customer=$customer_id;
Optional extras (but you MUST put in the $vs_customer too):
$vs_customer_url=$your_link_to_this_customer(if you have an admin);
$vs_customer_order=$customers_order_number;
$vs_customer_order_url=$your_link_to_this_order(if you have an admin);
$vs_customer_total=$customers_order_total_amount;

The code:

 

 



Automatically Insert Orders (Sold Items)

Use this to track customers items and orders. You can see what sold item is most popular. (read more)
USE TOGETHER WITH 'INSERT A CUSTOMER' (above)

The variable:
$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;


Test this using a quick array:
$vs_item_qty=array(0=>"5",1=>"1",2=>"3");
$vs_item_name=array(0=>"Eggcup's",1=>"Eggcup - Yellow",2=>"Egg Cup - Blue");
$vs_item_price=array(0=>"$10",1=>"$20",2=>"12.50");

The code:

Jump to: Rename Visitor / Custom Pages / Set a Flag / Tracking Codes / Insert Customers / Insert Sold Items