Forums / General Questions / Checkout Success Tracking Tag

Checkout Success Tracking Tag

Locked

Started by dgent on 11 Feb 2010, 4:25 PM · Views: 1,144

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
11 Feb 2010, 4:25 PM
#1
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

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?

11 Feb 2010, 6:32 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Checkout Success Tracking Tag

dgent:

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.

24 Feb 2010, 10:43 AM
#3
jsweb avatar

jsweb

Zen Follower

Join Date:
Jul 2005
Location:
UK and Ireland
Posts:
392
Plugin Contributions:
0

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?

The JSWeb Team
Providing Zen Cart Hosting, Design and Support services to help your business succeed online!
JSWeb | UK / Ireland ZenCart Design and Hosting Specialists