Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    May 2013
    Posts
    38
    Plugin Contributions
    0

    bug Is there a way to skip analytics on checkout pages?

    I am trying to put some analytics feeds on my store, but I do not want to track the checkout process (for various reasons). So, I want to put the scripts inside a container and hopefully tell that container to not display during checkout.

    Is this functionality already built-in?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Is there an admin option to not show a sidebox (or other container) during checko

    but I do not want to track the checkout process (for various reasons).
    So, I want to put the scripts inside a container and hopefully tell that container to not display during checkout
    This is contradicting
    You either do not want to track the checkout or you do - which one is it??

    If using google analytics code - nothing is presented to your customer
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2013
    Posts
    38
    Plugin Contributions
    0

    Default Re: Is there an admin option to not show a sidebox (or other container) during checko

    Quote Originally Posted by kobra View Post
    This is contradicting
    You either do not want to track the checkout or you do - which one is it??
    I don't understand the confusion. I originally wanted a container that could be turned off during checkout that held my analytics scripts:

    Quote Originally Posted by allthingsidLeroy View Post
    I do not want to track the checkout process . . . [can the container] not display during checkout.


    Quote Originally Posted by DrByte View Post
    Code:
    if ($request_type != 'SSL') {
     // put analytics code here
    }
    This solution is pretty succinct and easier to manage. Thanks, DrByte.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Is there a way to skip analytics on checkout pages?

    If you want to skip analytics on checkout pages, then chances are you also don't care about them on "My Account" or "Login" pages either. So therefore you could simply change your custom analytics code to not display when the PHP variable named $request_type is not set to 'SSL':

    Code:
    if ($request_type != 'SSL') {
     // put analytics code here
    }
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 3
    Last Post: 7 Oct 2014, 03:07 PM
  2. Is there a way to make Categories out of EZ Pages?
    By bparker in forum General Questions
    Replies: 1
    Last Post: 27 Apr 2012, 04:39 AM
  3. Is there a way to override the pages header.php file...
    By retched in forum Contribution-Writing Guidelines
    Replies: 3
    Last Post: 10 Jun 2011, 08:14 PM
  4. Is there a way to let my customers skip the shipping choice when shipping is free?
    By CnTGifts in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 5 Oct 2009, 01:46 AM
  5. Replies: 6
    Last Post: 29 Apr 2009, 07:21 PM

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