Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Checkout Success Tracking Tag

    I have this code I have entered on my tpl_footer.php file..

    <SCRIPT language='javascript'>
    var EventName = "Sale";
    var EventAmount = <?php echo $order_summary['order_total']; ?>;
    var EventProfit = "";
    var EventOrderNumber = <?php echo $order_summary['order_number']; ?>;
    var EventProductName = "";
    var EventCurrency = "GBP";
    EventParametersString = "";
    var _rrnd = Math.random();
    var str;
    var res;
    str = (document.location.href.indexOf("https") == 0) ? "https" : "http";
    res = "<s"+"cript language='javas"+"cript'>jsv=10;UserID=3252;<\/s"+"cript><s"+"cript language='JavaS"+"cript1.1'>jsv=11;<\/s"+"cript><s"+"cript language='JavaS"+"cript1.2'>jsv=12;<\/s"+"cript><s"+"cript language='JavaS"+"cript1.3'>jsv=13;<\/s"+"cript>";
    res += "<s"+"cript language='javas"+"cript' src='" + str + ":\/\/tracker.roitesting.com\/roitracker2.js'><\/s"+"cript>";
    document.write(res);
    </SCRIPT>

    I have entered the two variables for the Event Amount and Order number, as you can see, but everytime I go through checkout, and then check the source code, the variables or amounts never show up.

    Am I doing it correctly?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Checkout Success Tracking Tag

    Quote Originally Posted by dgent View Post
    I have entered the two variables for the Event Amount and Order number, as you can see...

    Am I doing it correctly?
    Yes, the code looks right. Where did you put the file? Does the javascript show up on the page at all?
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jul 2005
    Location
    UK and Ireland
    Posts
    258
    Plugin Contributions
    1

    Default Re: Checkout Success Tracking Tag

    Hi dgent,

    Why did you enter it to the Footer (viewable on each/every page) rather than the ZC confirmation page AFTER a successful sale?

    Has it worked for you to just add it to the Footer?

 

 

Similar Threads

  1. Replies: 5
    Last Post: 23 Feb 2010, 01:21 PM
  2. checkout success tag
    By bebijuteria in forum General Questions
    Replies: 14
    Last Post: 9 Apr 2009, 08:50 PM
  3. How do I put a Google tracking code in my checkout-success file?
    By kevinmc3 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 25 Jul 2008, 07:52 PM
  4. Sales tracking code for checkout success, please help!
    By boinkit in forum General Questions
    Replies: 0
    Last Post: 6 Mar 2008, 06:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg