Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google Analytic &/or Java Script


Guest

Recommended Posts

Posted

Hi OSC masters,

 

I am sorry if this has already been posted but I didn't find any answers in my search results.

I need to know how I can add JAVA SCRIPT code in the pages that I want to add the GOOGLE ANALYTICS script in.

 

I know there is a folder with all the seperate files for the JAVA SCRIPT codes in the includes/ folder but I cannot find the source code or command to get that file etc to link it.

 

I have to add the Java Script code before the </body> tag on the pages I want to track.

 

Thanks in advance!

Posted

You may just add the script code to the bottom of each page you want to track after the

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

 

statements.

Posted
You may just add the script code to the bottom of each page you want to track after the

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

 

statements.

 

 

Thanks for your help!

It worked.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...