I have a customized templatemonster template, that a designer implemented to my site. I was just going to install google analytics, but then I realize that /includes/templates/[my_template]/common/html_header.php is not in my customized tamplates folder.
Can I just create a html_header.php and add in the codes that the googleanalytic module wishes? Or shall I take that file from the default template and copy it into the coresponding folder of my customized template?
Here is the instructions from the Google Analytics module:
#### PART B: ####
At the bottom of /includes/templates/[your_template]/common/html_header.php
Copy and paste the following lines of code (found below) just before the </head> tag:
<?php
/* Begin Simple Google Analytics */
if (in_array($current_page_base,explode(",",'popup_image,popup_image_additional,pop up_cvv_help,popup_coupon_help,popup_attributes_qty_prices,popup_search_help,popu p_shipping_estimator')) ) {
//Skip outputting the tracking code as this is a pop-up window
} else { // Print tracking code to page
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
} // end if for page determination
/* End Simple Google Analytics */
?>


Reply With Quote
