Guest Posted September 2, 2010 Posted September 2, 2010 Is it possible to include the google analytics script in Oscommerce sites? If so, which files should it be copied to if I wanted to track my homepage/ landing page?
lehmbooks Posted September 29, 2010 Posted September 29, 2010 That is exactly what I am trying to figure out right now also. An answer would be wonderful!
♥mdtaylorlrim Posted September 29, 2010 Posted September 29, 2010 Put it in the footer.php and it will track every page. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...?
lehmbooks Posted September 29, 2010 Posted September 29, 2010 I'm confusing myself I think, but I do want to do this correctly the first time. This is what google's directions say: Once you find the code snippet, copy and paste it into your web page, just before the closing </head> tag*. If your website uses templates to generate pages, enter it just before the closing </head> tag in the file that contains the <head> section. But in the footer.php code, I do not find <head> tags at all. Do I put it before the last </table> tag? Thank you ahead for your help (and patience with us beginners).
richardd Posted September 30, 2010 Posted September 30, 2010 Not sure but take a look at index.php around line 47 if you have not alltered it
♥14steve14 Posted October 2, 2010 Posted October 2, 2010 I added the google code just before the last </script> in the includes/footer.php file. It seems to work where it is, so try putting is there. REMEMBER BACKUP, BACKUP AND BACKUP
♥geoffreywalton Posted October 2, 2010 Posted October 2, 2010 There is rather a nice add-on for google analytic. You can turn it on and off and it suggest 4 places where you should install it rather than on every page. HTH G Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.