Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

Mint stats way off since I set my blog to output Gzip format

Hi there,

Yesterday I decided to turn on Gzip within my blog software (ExpressionEngine). Since then, Visits and Uniques within Mint have dropped WAY down. Like, about half of what they normally are.

That is the only change made, and I know we didnt experience that kind of traffic drop.

So the question is, is it possible to have Mint track a Gzipped site correctly? What might I be doing wrong here?

Actually, there is one more piece of info that I should provide. I have this in our index.php file:

include_once($_SERVER[“DOCUMENT_ROOT”].”/mint/config/auto.php”);

So that everything gets counted on all pages. That index.php file is then GZIP’d. Could that be it?

Shaun Inman
Mint/Pepper Developer
Posted on Apr 25, '08 at 02:53 pm

I haven’t heard any reports of gzipping Mint causing problems. Have you tried simply turning off gzipping in your Mint directory?

Well, I turned off GZIP for about a day, and stats were back to normal. I turned it on again, and once again they are way off. However, I am realizing that Mint is capturing uniques correctly. It is just the pageviews that aren’t being tracked correctly.

As for turning off GZIP in the Mint directory - I’ve never had it turned on there. The only thing GZIP’d is the output of ExpressionEngine, so just the blog content pages.

Do you think it could be the include_once command that I have in the index.php file? I forget why I put that in there, but I remember it being an option that sounded good at the time. I know that file gets GZIP’d whenever a page is viewed.

Shaun Inman
Mint/Pepper Developer
Posted on Apr 28, '08 at 10:04 am

It’s odd that uniques are fine but that page views take a hit. Aside from the gzipping are you enabling any sort of caching? Mint will not work properly if it’s JavaScript is cached in any way (especially by the server, it is designed to prevent caching in the browser).

I will look into the caching - I appreciate the suggestion Shaun. This is the first issue that I have had with Mint since we installed it a little over a year ago. Fantastic product. Just need to get past this one hurdle :)

You must be logged in to reply. Login above or create an account