Announcement

Collapse
No announcement yet.

Need help with tracking script

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

    Need help with tracking script

    We are attempting to use a tracking system by to track clicks, conversions and cost per item sold. They require that we embed the following javascript into our receipt page.

    <script type='text/javascript'>
    <!--
    var orderSubTotal = '192.50';
    var orderTotal = '202.50';
    var orderNum = 'yhst-49893418605636-486';
    var numOfItems = '4';
    var items = new Array('Performance Booster','Energy Juice');
    var ids = new Array('perfbo','enjuice');
    var codes = new Array('06-001','09-003');
    var qtys = new Array('3','1');
    var price = new Array('47.5','50');
    var custKey = '00101020020333';
    var name = 'John Smith;
    var address1 = '123 West Broad St';
    var address2 = 'Suite B';
    var csz= 'Dublin, oh 43016';
    var phone = '123-555-1212';
    var email = 'johnqsmith11223@yahoo.com';

    var _csCaptureFormData=false;
    -->
    </script>

    using the following variables.


    orderSubTotal Order total excluding tax or shipping
    orderTotal Order total including tax and shipping
    orderNum Unique ID for this order
    numOfItems Total number of items orderd
    items Array of short item descriptions
    ids Array of unique item id’s
    codes Array of unique manufacturer codes for the items.
    qtys Array of quantities for each item
    price Array of prices for a single quantity of each item
    name Full customer name
    address1 Customer mailing address line 1
    address2 Customer mailing address line 2
    csz City state and zip formatted postal style
    phone Customer phone number
    email Customer email address
    tax Total tax amount
    shipping Total shipping amount


    I have no idea how to build the arrays that are required and I was wondering if actinic had a javascript loop or something to build those arays?


    Thanks,


    Gary

    #2
    If you look in the receipt code you will find the variables needed to populate the script.

    Comment


      #3
      Could you please snip the code that creates the item array and paste it. I've looked the page over as well as looked at the variable reference guide and can't figure out how to build those arrays, but I am far from a programmer.


      Thanks,


      Gary

      Comment


        #4
        Could you please snip the code that creates the item array and paste it
        Sorry Im busy with other work at the moment and dont have time to dig into it - you will have to get stuck in

        Comment


          #5
          Yeah, I don't think it's in there either. Maybe someone with knowledge can help

          Comment


            #6
            Yeah, I don't think it's in there either
            They are there - I use them for a custom V8 tracking system so I know they work.

            Comment


              #7
              easy stuff for Urchin ecommerce reporting

              We built integration into Actinic for the Urchin ecomerce reporting tools. You can track sales by product in date ranges as well as referals and loads of additional information. If your interested in using the plugin let me know as we offer a fully integrated solution that takes only thirty minutes to implement.

              Urchin is now owned by Google. The scripting we offer is more ecommerce specific then the standard google analytics. and works with its own web based login. Our solution will track orgainc search referals as well as pay per click for all ppc sources and affiliates.
              Brian Johnson
              :::Sure Solutions Inc:::Professional Actinic templates from Buythisdesign.com:::
              1-732-528-7635 x203

              Comment


                #8
                Had a bad day Malcolm, You are normally more helpfull to Newbees
                Chris Ashdown

                Comment


                  #9
                  Had a bad day Malcolm
                  Up to my ears in V8 conversion bugs and snapshot failures - so no time to help much today.

                  Comment


                    #10
                    must say that I have been in the same situation as malcom now since November. ugghhhhh
                    Brian Johnson
                    :::Sure Solutions Inc:::Professional Actinic templates from Buythisdesign.com:::
                    1-732-528-7635 x203

                    Comment

                    Working...
                    X