Results 1 to 10 of 2161

Hybrid View

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by firefish View Post
    ah...
    thanks for pointing out the subtle but very crucial difference bet. the two...

    i guess i will try to implement your code
    when i am trying out paid search to track actual conversions.

    have you implemented jrox affiliate succesfully to fully encompass the whole spectrum of internet marketing?
    i.e. does jrox affiliate tracks affiliates' conversions as well?
    Keep in mind that the difference involves more than just paid search. If you are just posting Google Analytics tracking code into your zen cart site in the tpl_main_page.php file then you will loose the ability to track ecommerce transactions and accurately track goals. Both very important parts of the Google Analytic -- that is, if you are looking to have enough data to tell you how to make more money. If you just want statistics and are not as interested in finding out where you can generate more sales then your method will work.

    If you are using JROX then you will need to make a slight modification to the code I have. Let me know when you get to that point. JROX has you alter the footer of the checkout success page during it's install. This overrides the Google Analytics thank you page code. They both work together just fine, but you have to move the JROX code to a different page to get it to work with Google Analytics.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  2. #2
    Join Date
    Mar 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    Keep in mind that the difference involves more than just paid search. If you are just posting Google Analytics tracking code into your zen cart site in the tpl_main_page.php file then you will loose the ability to track ecommerce transactions and accurately track goals. Both very important parts of the Google Analytic -- that is, if you are looking to have enough data to tell you how to make more money. If you just want statistics and are not as interested in finding out where you can generate more sales then your method will work.

    If you are using JROX then you will need to make a slight modification to the code I have. Let me know when you get to that point. JROX has you alter the footer of the checkout success page during it's install. This overrides the Google Analytics thank you page code. They both work together just fine, but you have to move the JROX code to a different page to get it to work with Google Analytics.
    Hi I would like to know what the mod is for the JROX intergration so that the Analytics keep working as it should.
    Thanks

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by wowflak View Post
    Hi I would like to know what the mod is for the JROX intergration so that the Analytics keep working as it should.
    Thanks
    Here is the route I have taken in the past. This would bee the way I structure the code on the tpl_main_page.php to work with JROX. I added a portion of code between new comments that I call "Additional Tracking".

    Make sure you remove the tpl_footer.php file from the area that the JROX install says to place it in order for the override to not take effect.

    Make sure you BACKUP the files you are going to change before you do this so you can easily revert to the older version if needed.

    I will be making some updates to the GA code here a some point and will include a note on the JROX integration piece for others that may need it.

    <!--bof Simple Google Analytics-->
    <?php
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    ?>
    <!--eof Simple Google Analytics-->

    <!-- bof Additional Tracking -->
    <?php
    if($_SERVER['HTTPS']=='on'){ // If page is SSL then use Secure Code
    ?>

    <?php
    if ($_GET['main_page']=="checkout_success") {
    ?>

    Add your JROX Code here

    <?php } //End if main page is "checkout_success"?>



    <?php // Else if not a secure connection then use Non-Secure Code
    } else {
    // Nothing Here at the moment but if you wanted to add code that would be non-secure you would add it here.
    } ?>
    <!-- / eof Additional Tracking -->
    </body>
    </html>
    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

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