Results 1 to 10 of 2161

Threaded View

  1. #11
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by rhutchison View Post
    My checkout success page is throwing out the following error in the footer:

    I have gone back through the installation notes and, as near as I can tell, I have everything configured correctly. I'm collecting data in Analytics, I'm just having this problem with checkout_success

    I'm running ZC 1.3.7 and the body tag for tpl_main_page is:

    The included code at the bottom of tpl_main_page is:

    The error tells me that this last bit of code is not picking up the fact that's it needs to look in the templates/patiotoys/google_analytics directory for the file.

    I have an override directory with templates/patiotoys/checkout_success/tpl_footer.php that I need for my JAM affiliate software, which is likely the culprit.

    One solution would be to copy the google_analytics.php file to a directory that the code at the end of tpl_main_page is looking in, but that seems a bit kludgey. Is there an elegant code solution for this?

    Thanks,

    Roger
    Roger,

    The footer file should be in the "common" folder as standard zen procedure. It is shared across all pages.

    If you need affiliate link tracking only on the checkout_success page (near the footer), then try the following:

    1) Copy the line(s) of code you need for the tracking and paste it into the tpl_main_page.php file just above the Google Analytics code. use the following as a guide:

    <?php
    if ($_GET['main_page']=="checkout_success") {
    ?>
    <!--Paste your affiliate code between these comments-->

    <!-- End of Affiliate Code -->
    <?php }?>
    Keep in mind you will need to delete the "tpl_footer.php" file that you included under the "checkout_success" directory as well.

    You'll also want to make sure the affiliate link is secure (https:) as the checkout success page is often secure so you wouldn't want to the ssl message box to pop up from the client browser.

    Hope that helps.
    Last edited by econcepts; 8 Nov 2007 at 03:44 PM. Reason: added info
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

 

 

Similar Threads

  1. v150 Simple Google Analytics .sql error !
    By Miff in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Feb 2012, 11:33 PM
  2. Simple Google Analytics-not working
    By RobertG in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 11 Nov 2010, 06:07 PM
  3. Simple (From Google) Analytics Install
    By DagLindt in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 May 2009, 10:46 PM
  4. Simple google analytics- help
    By Pet Herbal Remedies in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 1 Oct 2008, 10:37 PM
  5. Simple Google Analytics not working
    By jvanree in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 May 2008, 03:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR