gillweb Posted February 25, 2003 Share Posted February 25, 2003 I use a web stats program. Currently I only have it counting the home page for actual hits. Can I add a script to 'application_top.php' or will this throw off the whole program? The script I would need to add is: <SCRIPT LANGUAGE="JavaScript"> <!-- var from = document.referrer; document.write("<IMG SRC=../stats/stats.php?reffer=" + from + " border=0>"); // --> </SCRIPT Would this work? If so would I keep in within the <? ?> or add it to the end? Also in doing this would it count each page within the oscommerce catalog? <? Hello There! ?> Link to comment Share on other sites More sharing options...
Paul_w Posted February 25, 2003 Share Posted February 25, 2003 I would suggest that you put that in catalog/includes/header.php you would be able to add that directly into the html wherever it fits best for you. Link to comment Share on other sites More sharing options...
gillweb Posted February 25, 2003 Author Share Posted February 25, 2003 Never thought of the header.php file... Thanks Paul! :D <? Hello There! ?> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.