Adding Google Analytics to your VPASP site is using 5.50 or earlier
These changes will allow you to use the Google Analytics tool on your site.
Open shopproductsubs.asp and add the following sub routine at the bottom of the page before the final %> tag:
const xurchinstats="Yes" 'change this to no to hide the Analytics code
const xurchinacctno="xxxxxx" ' add your analytics account number here
sub inserturchinstats
if xurchinstats = "Yes" then
'VP-ASP 6.09 - Updated Urchin SSL URL%>
<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript">
_uacct="<%=xurchinacctno%>";
urchinTracker();
</script>
<%end if
end sub
Now open your shoppage_trailer.htm file and add the following just before your final closing HTML tag:
<%inserturchinstats%>
Save and test your changes.
Times Viewed:
2286 |
Added By:
michael |
Date Created:
2/5/2008 |
Last Updated:
2/5/2008 |
|