VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Customization
 Google Analytics with ROI and BYZ Panel Splitter
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

robmac
Starting Member

26 Posts

Posted - April 06 2007 :  03:17:47  Show Profile  Reply with Quote
We are running VP-ASP 5.50 with some BYZ add-ons and having just spent some time implementing Google Analytics & ROI I thought I would share the details

1) At the very bottom of panel_contents_bottom.asp add the following
<%
if Request.ServerVariables("HTTPS")="on" then
%><script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script><%
Else
%><script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script><%
End If
%>
<script type="text/javascript">
_uacct = "Enter Your Google Analytics Code here";
urchinTracker();
</script>


2) In panel_contents_body.asp replace
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"
with
if Request.ServerVariables("URL")="/store/shopthanks.asp" then
%><body onLoad="javascript:__utmSetTrans()" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"<%
Else
%><body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"<%
end if


3) In shopthanks.asp immediately above the line starting
<a href="JavaScript:openWin('shopthanksprint.asp',
add the following code
<form style="display:none;" name="utmform">
<textarea id="utmtrans">UTM:T|<% =Getsess("oid") %>||<% =GetSess("OrderTotal") %>|<% =GetSess("taxes") %>| <% =GetSess("shipcost") %>|<% =GetSess("City") %>|<% =GetSess("State") %>|<% =GetSess("Country") %></textarea></form>


If anyone knows how to extend this further so that you can include the UTM:I items then that would be great

Edited by - robmac on April 06 2007 03:21:15
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000