Announcement

Collapse
No announcement yet.

Saletrack - tracking cart values

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Saletrack - tracking cart values

    Hi,

    I have actinic site http://www.girlsofelegance.co.uk

    I have signed up with saletrack.co.uk, a company that tracks sales ...

    They need to grab the cart value, cart items, and order number from the completed check out page, but I need to add the tracking code with the option to get these values.

    This is there technical help -

    data = 'cid=254864&cs=[total]&it=[itemcount]&oi=[orderinfo]';
    .
    Substitute [total] for the total amount on this order.
    Substitute [itemcount] for the amount of items bought. This field is optional, you may omit it, or set to 1.
    Substitute [orderinfo] for the order reference or any additional info (up to 255 characters). This field is optional, you may omit it or set to blank.

    If your commerce system is written in ASP, the line would look similar to this: (where rsOrder is an ASP recordset)

    data='cid=254864&cs=<%=rsOrder("TotalSpend")%>&it=<%=rsOrder("ItemCount")%>&oi=<%=rsOrder("OrderRef")%>';
    If your commerce system is written in PHP, the line would look similar to this:

    data='cid=254864&cs=<?php echo $OrderTotal;?>&it=<?php echo $ItemCount;?>&oi=<?php echo OrderRef;?>';

    Has anyone done this and know the correct code from the above for actinic?

    Best Regards,

    Austin Harvey
    Austin Harvey
    Girls Of Elegance Ltd
    http://www.girlsofelegance.co.uk

    #2
    Saletrack Script

    Hi Austin,
    This should work for you, insert at the end of Act_order04.html and substitute your id number where it says 'cid=100252'
    *************

    <!-- SaleTrack Code- empowered marketing -->
    <script language="javascript">
    <!--
    var parm,data,rf,sr,htprot; htprot='http';
    costvar = NETQUOTEVAR:ACTINICORDERTOTAL/100;
    data = 'cid=100252'+ '&cs='+costvar+'&it=1'+ '&oi=NETQUOTEVAR:THEORDERNUMBER';
    parm='border=0 hspace=0 vspace=0 width=1 height=1';
    if(self.location.protocol=='https:')htprot='https';
    document.write('<img '+parm+' src="'+htprot+'://stats1.saletrack.co.uk/scripts/stexit.asp?'+ data + '">');
    //-->
    </script>
    <noscript>
    <img src="http://stats1.saletrack.co.uk/scripts/stexit.asp?cid=100252&cs=NETQUOTEVAR:NUMERICORDERTOTALCGI&it=1&oi=NETQUOTEVAR:THEORDERNUMBER" border="0" width="0" height="0">
    </noscript>
    <!-- /SaleTrack Code- empowered marketing -->

    Regards,
    Phil
    http://www.body-kit.co.uk

    Comment

    Working...
    X