Zen Cart Logo
Forums / All Other Contributions/Addons / Simple Google Analytics - Support

Simple Google Analytics - Support

Views: 451,191

Results 1,101 to 1,120 of 2,165
2 Dec 2009, 11:30 PM
#1101
crafterscafe avatar

crafterscafe

New Zenner

Join Date:
May 2009
Posts:
38
Plugin Contributions:
0

Simple Google Analytics - Support

I have GA mod installed tracking is fine but when I tried to create a funnel with checkout success as the final page I wasnt getting any successful conversions.

I read something about Jam and GA somewhere but can find the post. I see the Jam script at the bottom of the page but not the GA? Is there a reason. Please get back asap if you can as I am going to be setting up a new company and want to get it right from the start.

thanks

url is https://www.crafterscafe.com

3 Dec 2009, 4:11 AM
#1102
zackman2002 avatar

zackman2002

New Zenner

Join Date:
Dec 2009
Posts:
1
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I have done everything required to make this mod work, however, I can't get the code to show up in my source. Below is the last section of my tpl_main_page.php file. I am using a template called "classic" and it does not have a common folder in it. I assume it uses the "default_template" for everything it doesn't have, correct? I went ahead and put the google_analytics folder in both the classic folder and the default_template folder just to be safe. The site is https://www.kikoykiosk.com

Thanks for your help.

<!--eof- parse time display --> <!--bof- banner #6 display --> <?php if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div> <?php } } ?> <!--eof- banner #6 display --> <?php require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); ?> </body>
3 Dec 2009, 6:36 AM
#1103
bassface avatar

bassface

New Zenner

Join Date:
Jan 2005
Location:
Aurora, CO USA
Posts:
71
Plugin Contributions:
1

Re: Simple Google Analytics - Support

zackman2002:

I have done everything required to make this mod work, however, I can't get the code to show up in my source. Below is the last section of my tpl_main_page.php file. I am using a template called "classic" and it does not have a common folder in it. I assume it uses the "default_template" for everything it doesn't have, correct? I went ahead and put the google_analytics folder in both the classic folder and the default_template folder just to be safe. The site is www.kikoykiosk.com

Thanks for your help.
I don't see the required bit of 'onload=' code in your opening <body> tag.

From the installation.txt

2. Make sure your body tag in /includes/templates/[your_template]/common/tpl_main_page.php
includes this code (if not see trouble shooting below it is not neccassary but an addition
to your template needs to be made):

**** HELPFUL HINT: ****
If you are runnning any of the 1.3.x versions of Zen Cart, this line is already
included with those installs and you can safely skip this step. You may need to check earlier
versions for it though.
***********************

<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
4 Dec 2009, 3:21 PM
#1104
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

crafterscafe:

I have GA mod installed tracking is fine but when I tried to create a funnel with checkout success as the final page I wasnt getting any successful conversions.

I read something about Jam and GA somewhere but can find the post. I see the Jam script at the bottom of the page but not the GA? Is there a reason. Please get back asap if you can as I am going to be setting up a new company and want to get it right from the start.

thanks

url is https://www.crafterscafe.com

Yes, the JAM code (because of how it is installed) overrides the code for GA in the footer.

Here is the link to the proper install when using both. (Scroll all the way to the bottom of the page to the July 22 comment I made and you'll see in the comments section the "how to" for JAM integration with GA.)

http://www.zencartoptimization.com/2007/08/15/now-available-google-analytics-uncovered-for-zen-cart-the-workbook/

Let me know if you have any further questions!

4 Dec 2009, 3:25 PM
#1105
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

BassFace:

I don't see the required bit of 'onload=' code in your opening <body> tag.

From the installation.txt

  1. Make sure your body tag in /includes/templates/[your_template]/common/tpl_main_page.php
    includes this code (if not see trouble shooting below it is not neccassary but an addition
    to your template needs to be made):

**** HELPFUL HINT: ****
If you are runnning any of the 1.3.x versions of Zen Cart, this line is already
included with those installs and you can safely skip this step. You may need to check earlier
versions for it though.


<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>> ```

It's ok if that is not present (the onload portion). That won't show on most sitess for the most part (even when GA is present). That's because it is php code which activates at run time. Typically the body tag remains as is and the onload is not critical.

4 Dec 2009, 3:30 PM
#1106
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

zackman2002:

I have done everything required to make this mod work, however, I can't get the code to show up in my source. Below is the last section of my tpl_main_page.php file. I am using a template called "classic" and it does not have a common folder in it. I assume it uses the "default_template" for everything it doesn't have, correct? I went ahead and put the google_analytics folder in both the classic folder and the default_template folder just to be safe. The site is https://www.kikoykiosk.com

Thanks for your help.

<!--eof- parse time display --> <!--bof- banner #6 display --> <?php if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div> <?php } } ?> <!--eof- banner #6 display --> <?php require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); ?> </body>

You likely did not place the code in the correct location to get Google Analytics on the page.

The classic template pulls from the default pages (the classic is directory actually only runs the look of the site.)

What you need to do is make sure you place the "google_analytics.php" reference in the tpl_main_page of the classic template and make sure you copy the directory google_analytics to the correct location for reference as well. It might be best to create your own "common" directory under the classic template to add your own file to as well.

If you send me a private message with your login details I can correct it for you quickly.

15 Dec 2009, 3:04 PM
#1107
ptowers49 avatar

ptowers49

New Zenner

Join Date:
Aug 2009
Location:
UK
Posts:
71
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I'm trying to track traffic from other sites especially cpc that comes in to specific product pages.
Can this be done?
When I look for the google analytics code on pages it appears on the home page and category pages BUT not on product pages!!! Is that right?

15 Dec 2009, 6:18 PM
#1108
bettyboop28 avatar

bettyboop28

New Zenner

Join Date:
Dec 2009
Posts:
24
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Thanks guys:D

15 Dec 2009, 7:28 PM
#1109
jamesmcl515 avatar

jamesmcl515

New Zenner

Join Date:
Jan 2009
Posts:
14
Plugin Contributions:
0

Re: Simple Google Analytics - Support

We have installed the latest version of Simple Analytics (v1.2.2) and we still do not have ecommerce tracking showing in Google Analytics.

-We have installed and re-installed, but with no luck in getting ecommerce tracking.
-We have made sure that the profile in Google Analytics has been edited to turn on ecommerce tracking.
-All of the pages on our site have the tracking installed EXCEPT the order confirmation / thank you for your order page. This is where the eCommerce tracking code should be installed as per Google Analytics:

<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-XXXXX-1"); pageTracker._trackPageview(); pageTracker._addTrans( "1234", // Order ID "Mountain View", // Affiliation "18.28", // Total "1.29", // Tax "5", // Shipping "San Jose", // City "California", // State "USA" // Country ); pageTracker._addItem( "1234", // Order ID "DD44", // SKU "T-Shirt", // Product Name "Green Medium", // Category "11.99", // Price "1" // Quantity ); pageTracker._trackTrans(); } catch(err) {}</script>
16 Dec 2009, 1:04 PM
#1110
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

jamesmcl515:

We have installed the latest version of Simple Analytics (v1.2.2) and we still do not have ecommerce tracking showing in Google Analytics.

-We have installed and re-installed, but with no luck in getting ecommerce tracking.
-We have made sure that the profile in Google Analytics has been edited to turn on ecommerce tracking.
-All of the pages on our site have the tracking installed EXCEPT the order confirmation / thank you for your order page. This is where the eCommerce tracking code should be installed as per Google Analytics:

<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-XXXXX-1"); pageTracker._trackPageview(); pageTracker._addTrans( "1234", // Order ID "Mountain View", // Affiliation "18.28", // Total "1.29", // Tax "5", // Shipping "San Jose", // City "California", // State "USA" // Country ); pageTracker._addItem( "1234", // Order ID "DD44", // SKU "T-Shirt", // Product Name "Green Medium", // Category "11.99", // Price "1" // Quantity ); pageTracker._trackTrans(); } catch(err) {}</script>

James,

Do you have an affiliate program (like JAM / JROX) installed on your site? This the way this is installed causes it to override the thank you page (footer) of the site and thus renders the Google Analytics Tracking code non-working (it removes it from the page).

If that is the case you can read my post in the link below for installing it with JROX / JAM. Go to the following link and scroll to the bottom of the page (July 22 post). You'll see the instructions for how to do this.

http://www.zencartoptimization.com/2007/08/15/now-available-google-analytics-uncovered-for-zen-cart-the-workbook/

If this does not correct your issue let me know and I can take a look.

Thanks!

16 Dec 2009, 1:07 PM
#1111
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

ptowers49:

I'm trying to track traffic from other sites especially cpc that comes in to specific product pages.
Can this be done?
When I look for the google analytics code on pages it appears on the home page and category pages BUT not on product pages!!! Is that right?

You have the code installed incorrectly if it is showing on some pages but not others. If you installed it per the instructions it will appear on all pages of the site including the checkout page.

You can track cpc traffic by then linking your Adwords account to your Google Analytics account and indicating to Google that you want to "Apply Cost Data" to your reports.

This will get you all the detail you need on cpc.

But again, you need to have the GA code installed correctly first and it appears that isn't the case.

There are only a few steps to installing this mod are you sure you are using this one (there is another mod that is not mine out there.)

If you can't figure it out, post a link and I'll see if I can't pin point what might be going on.

16 Dec 2009, 2:21 PM
#1112
jamesmcl515 avatar

jamesmcl515

New Zenner

Join Date:
Jan 2009
Posts:
14
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

James,

Do you have an affiliate program (like JAM / JROX) installed on your site? This the way this is installed causes it to override the thank you page (footer) of the site and thus renders the Google Analytics Tracking code non-working (it removes it from the page).

If that is the case you can read my post in the link below for installing it with JROX / JAM. Go to the following link and scroll to the bottom of the page (July 22 post). You'll see the instructions for how to do this.

http://www.zencartoptimization.com/2007/08/15/now-available-google-analytics-uncovered-for-zen-cart-the-workbook/

If this does not correct your issue let me know and I can take a look.

Thanks!

Hi Eric,

Thank you for your support on this. We do have an affiliate program installed. It is iDev affiliate. We didn't do the installation so we are looking into how this was integrated. Once we see the integration we will follow the advice on your website and let you know the outcome.

Highest Regards,
James

16 Dec 2009, 4:27 PM
#1113
ptowers49 avatar

ptowers49

New Zenner

Join Date:
Aug 2009
Location:
UK
Posts:
71
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Eric,
I've found that I have no footer on the product pages!! https://www.classicalchandeliers.co.uk
I other sites I am building like https://www.electrical-and-plumbing-supplies.co.uk that I have not put simple google analystics on yet so I wouldn't think the problem is there... but do have any ideas what the problem might be.
I have loaded glacial age, Image handler 2 , zenlightbox modules.

thanks in anticipation/ Paul

16 Dec 2009, 4:48 PM
#1114
ptowers49 avatar

ptowers49

New Zenner

Join Date:
Aug 2009
Location:
UK
Posts:
71
Plugin Contributions:
0

Re: Simple Google Analytics - Support

more info Eric
I get this debug error require(includes/templates/template_default/templates/tpl_modules_xsell_products.php) ? when I look at product pages without the footer

16 Dec 2009, 5:31 PM
#1115
ptowers49 avatar

ptowers49

New Zenner

Join Date:
Aug 2009
Location:
UK
Posts:
71
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I have performed this fix to make the footer re-appear on the product pages

Footer not displaying on product pages
looked in includes/templates/glacial_age/templates/tpl_product_info_display.php
and commented out
// require($template->get_template_dir('tpl_modules_xsell_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_xsell_products.php');
On line 271

I'll check the analytics again


17 Dec 2009, 2:42 PM
#1116
jamesmcl515 avatar

jamesmcl515

New Zenner

Join Date:
Jan 2009
Posts:
14
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

James,

Do you have an affiliate program (like JAM / JROX) installed on your site? This the way this is installed causes it to override the thank you page (footer) of the site and thus renders the Google Analytics Tracking code non-working (it removes it from the page).

If that is the case you can read my post in the link below for installing it with JROX / JAM. Go to the following link and scroll to the bottom of the page (July 22 post). You'll see the instructions for how to do this.

http://www.zencartoptimization.com/2007/08/15/now-available-google-analytics-uncovered-for-zen-cart-the-workbook/

If this does not correct your issue let me know and I can take a look.

Thanks!
:lookaroun
Hey Thanks so much for your help. We followed the instructions you provided and the Simple Google Analytics eCommerce Tracking worked. BUT, our iDefAffiliate program did not work anymore. So, we had to back out the changes and add revert back to the 'tple_footer.php' file that you recommended we removed.

We did try to add the iDev Affiliate code to the 'tpl_main_page.php' as you suggested to move the JAM code. But, this caused the site to not even load. We don't have a test environment and we are not php coders, but we do want iDevAffiliate and Google Analytics eCommerce tracking to work at the same time. Do you have a suggested approach to resolve this issue?

For your reference, this is the instructions that the iDevAffiliate gives for Zen integration:

ZenCart Version 1.3.x or Newer

  1. Download the template override file: Download Here
  2. Save the file to your local harddrive.
  3. Edit that file and near the bottom, adjust the path to your iDevAffiliate installation folder/directory.
  4. Upload that file to your /zencart/includes/templates/your_template_directory/checkout_success/tpl_footer.php directory.

Notes:

  1. The directory your_template_directory is the ZenCart template directory you're using.
  2. If the directory checkout_success doesn't exist, create it and upload tpl_footer.php into it.

Here are the contents of the 'template override file they provided:

<?PHP require(DIR_WS_MODULES . zen_get_module_directory('footer.php')); if (!$flag_disable_footer) { ?> <div id="navSuppWrapper"> <div id="navSupp"> <ul> <li><?PHP echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?PHP echo HEADER_TITLE_CATALOG; ?></a></li> <?PHP if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?> <li><?PHP require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li> <?PHP } ?> </ul> </div> </div> <?PHP if (SHOW_FOOTER_IP == '1') { ?> <div id="siteinfoIP"><?PHP echo TEXT_YOUR_IP_ADDRESS . ' ' . $_SERVER['REMOTE_ADDR']; ?></div> <?PHP } ?> <?PHP if (SHOW_BANNERS_GROUP_SET5 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET5)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerFive" class="banners"><?PHP echo zen_display_banner('static', $banner); ?></div> <?PHP } } ?> <div id="siteinfoLegal" class="legalCopyright"><?PHP echo FOOTER_TEXT_BODY; ?></div> <?PHP } if ((int)$orders_id > 0) { $IDEV = $db->Execute("select class, value from " . TABLE_ORDERS_TOTAL . " where orders_id = '".(int)$orders_id."' AND class in ('ot_coupon', 'ot_subtotal', 'ot_group_pricing')"); while (!$IDEV->EOF) { switch ($IDEV->fields['class']) { case 'ot_subtotal': $order_subtotal = $IDEV->fields['value']; break; case 'ot_coupon': $coupon_amount = $IDEV->fields['value']; break; case 'ot_group_pricing': $group_pricing_amount = $IDEV->fields['value']; break; } $IDEV->MoveNext(); } $idev_sale_amount = ($order_subtotal - $coupon_amount - $group_pricing_amount); $idev_sale_amount = number_format($idev_sale_amount,2,'.',''); // Make sure the below path is correctly pointing to your installation folder/directory. echo "<img border=\"0\" src=\"http://www.yourdomain.com/idevaffiliate/sale.php?idev_saleamt=$idev_sale_amount&idev_ordernum=$orders_id\" height=\"1\" width=\"1\">"; echo "</td></tr></table>"; } ?>
17 Dec 2009, 6:13 PM
#1117
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

ptowers49:

I have performed this fix to make the footer re-appear on the product pages

Footer not displaying on product pages
looked in includes/templates/glacial_age/templates/tpl_product_info_display.php
and commented out
// require($template->get_template_dir('tpl_modules_xsell_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_xsell_products.php');
On line 271

I'll check the analytics again


That is one way to get around it but not the ideal way. By commenting that out you just removed (in essence) the ability to cross sell products.

A better way to go about it is to reinstall the "cross sell" module which would replace the previously missing file and correct the error (while allowing you to still cross sell).

17 Dec 2009, 6:15 PM
#1118
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

jamesmcl515:

:lookaroun
Hey Thanks so much for your help. We followed the instructions you provided and the Simple Google Analytics eCommerce Tracking worked. BUT, our iDefAffiliate program did not work anymore. So, we had to back out the changes and add revert back to the 'tple_footer.php' file that you recommended we removed.

We did try to add the iDev Affiliate code to the 'tpl_main_page.php' as you suggested to move the JAM code. But, this caused the site to not even load. We don't have a test environment and we are not php coders, but we do want iDevAffiliate and Google Analytics eCommerce tracking to work at the same time. Do you have a suggested approach to resolve this issue?

For your reference, this is the instructions that the iDevAffiliate gives for Zen integration:

ZenCart Version 1.3.x or Newer

  1. Download the template override file: Download Here
  2. Save the file to your local harddrive.
  3. Edit that file and near the bottom, adjust the path to your iDevAffiliate installation folder/directory.
  4. Upload that file to your /zencart/includes/templates/your_template_directory/checkout_success/tpl_footer.php directory.

Notes:

  1. The directory your_template_directory is the ZenCart template directory you're using.
  2. If the directory checkout_success doesn't exist, create it and upload tpl_footer.php into it.

Here are the contents of the 'template override file they provided:

<?PHP require(DIR_WS_MODULES . zen_get_module_directory('footer.php')); if (!$flag_disable_footer) { ?> <div id="navSuppWrapper"> <div id="navSupp"> <ul> <li><?PHP echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?PHP echo HEADER_TITLE_CATALOG; ?></a></li> <?PHP if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?> <li><?PHP require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li> <?PHP } ?> </ul> </div> </div> <?PHP if (SHOW_FOOTER_IP == '1') { ?> <div id="siteinfoIP"><?PHP echo TEXT_YOUR_IP_ADDRESS . ' ' . $_SERVER['REMOTE_ADDR']; ?></div> <?PHP } ?> <?PHP if (SHOW_BANNERS_GROUP_SET5 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET5)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerFive" class="banners"><?PHP echo zen_display_banner('static', $banner); ?></div> <?PHP } } ?> <div id="siteinfoLegal" class="legalCopyright"><?PHP echo FOOTER_TEXT_BODY; ?></div> <?PHP } if ((int)$orders_id > 0) { $IDEV = $db->Execute("select class, value from " . TABLE_ORDERS_TOTAL . " where orders_id = '".(int)$orders_id."' AND class in ('ot_coupon', 'ot_subtotal', 'ot_group_pricing')"); while (!$IDEV->EOF) { switch ($IDEV->fields['class']) { case 'ot_subtotal': $order_subtotal = $IDEV->fields['value']; break; case 'ot_coupon': $coupon_amount = $IDEV->fields['value']; break; case 'ot_group_pricing': $group_pricing_amount = $IDEV->fields['value']; break; } $IDEV->MoveNext(); } $idev_sale_amount = ($order_subtotal - $coupon_amount - $group_pricing_amount); $idev_sale_amount = number_format($idev_sale_amount,2,'.',''); // Make sure the below path is correctly pointing to your installation folder/directory. echo "<img border=\"0\" src=\"http://www.yourdomain.com/idevaffiliate/sale.php?idev_saleamt=$idev_sale_amount&idev_ordernum=$orders_id\" height=\"1\" width=\"1\">"; echo "</td></tr></table>"; } ?>

Yes, this install of iDev is basically the same as it is with JAM (same concept, same files altered.)

You would still want to follow the same instructions as for JAM (of course removing the JAM portion and replacing with the iDev affiliate one).

If you need help send me a private message and I'll take a look.

Thanks!

17 Dec 2009, 7:20 PM
#1119
jamesmcl515 avatar

jamesmcl515

New Zenner

Join Date:
Jan 2009
Posts:
14
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

Yes, this install of iDev is basically the same as it is with JAM (same concept, same files altered.)

You would still want to follow the same instructions as for JAM (of course removing the JAM portion and replacing with the iDev affiliate one).

If you need help send me a private message and I'll take a look.

Thanks!

Hey Eric,

Once again you are an amazing resource for the Zen Cart community, thank you. Before we give this another shot, I have one additional question.

Do we need to include the entire contents of the 'tpl_footer.php' page on the 'tpl_main_page.php' page or just a snippet that is relevant to iDev?

Thanks again,
James

17 Dec 2009, 10:15 PM
#1120
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

jamesmcl515:

Hey Eric,

Once again you are an amazing resource for the Zen Cart community, thank you. Before we give this another shot, I have one additional question.

Do we need to include the entire contents of the 'tpl_footer.php' page on the 'tpl_main_page.php' page or just a snippet that is relevant to iDev?

Thanks again,
James

James,

Thanks for the kind words. I love to help.

To answer your question ...

You do NOT want to include the entire contents of the tpl_footer.php file in the tpl_main_page.php

You only want to include the bit that I have indicated in the instructions at that previous link (let me know if you need that again.)

It would look something like this (at the bottom of your tpl_main_page.php).

< ?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
< ?php
if ($_GET['main_page']=="checkout_success") {

##########################################
## START iDevAffiliate INTEGRATION WITH ZEN CART ##
##########################################


Insert your iDeve Affiliate code here taken from your tpl_footer.php page


#######################################
## END iDevAffiliate INTEGRATION WITH ZEN CART ##
#######################################

} // end if for determining if this was the checkout_success page.?>

Let me know if that helps. Remember, once you do this and find it is working you will need to remove that "checkout_success" directory (the one under your custom template NOT the core one!) for the override to work.

If you need me to fix it for you let me know and I can take a look (I'll PM you the details).