PDA

View Full Version : Invisible


Rhialto
12-28-2007, 04:04 PM
When you do the INSTALL CODE part and select an invisible counter, the code generated is a visible counter : var sc_invisible=0;

This is valid for both current SC3 and SC4 beta.

And believe it or not, this is like this for almost a year now, I don't remember exactly. I always had to edit it myself.

Now I'll go bump a REQ made early December, hoping to hear from the dev team.

webado
12-28-2007, 05:52 PM
Yes it's a visible invisible image.

In other words the invisibility is handled in the configuraiton of the image.
The drawback is that Statcounter only know the image is invisible after the Statcounter server has been contacted and it has reponsded, in which time you may see the alt text supposed to go with the image counter.

Thus you need to establish rigth from the start the thing is invisible so it won't even try to set any alt text at all. That is what the line var invisible=1; does.

The trick is to generate code for "visible on homepage and invisible elsewhere" which generates 2 sets of code. Then use the one for "invisible elsewhere" - on all pages.

This is equivalent to manually replacing var invisible=1; by var invisible=1;
After this you can go through Configure counter and pick invisible for the image, for good measure.

Then you'd have a truly invisible counter, both through the code and in the image style itself.


Note that you cannaot have an invisible text counter, no such thing.

Note also there is no html-only text counter that is possible either.

Rhialto
12-29-2007, 02:29 AM
Ok because when I got here with my 1st project over a year ago the var invisible=1; was correctly generated when choosing invisible and suddenly it was generating var invisible=0; instead and I always had to change it manually to 1 and I never reported the problem.

webado
12-29-2007, 02:33 AM
You might be right, I don't recall very well, but I think at one point the wizard got "streamlined" and that got left behind.