Zen Cart Logo
Forums / Customization from the Admin / Is there a way to skip analytics on checkout pages?

Is there a way to skip analytics on checkout pages?

Views: 912

Results 1 to 4 of 4
5 Jun 2013, 3:57 PM
#1
allthingsidleroy avatar

allthingsidleroy

New Zenner

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

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?

5 Jun 2013, 6:58 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

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

5 Jun 2013, 7:44 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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':

if ($request_type != 'SSL') {
 // put analytics code here
}
5 Jun 2013, 8:03 PM
#4
allthingsidleroy avatar

allthingsidleroy

New Zenner

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

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

kobra:

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:

allthingsidLeroy:

I do not want to track the checkout process . . . [can the container] not display during checkout.

DrByte:

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


This solution is pretty succinct and easier to manage. Thanks, DrByte.