This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Pages: 1 - Last Post: 13 Jul 25, 22:55 Last Post By: RobM Threads: [ Previous | Next ]
Soulportals

Posts: 23
Registered: 28-Jan-2015
Visitor Counter New Pages
Posted: 5 Jul 25, 04:21
 
  Click to reply to this thread Reply
Is there a way to include the counter on a new custom page? I have several of these pages and I'd like to know how often they are visited but the visitors counter is not showing on any of them. Appreciate any help thank you!
JeffTucker

Posts: 8,180
Registered: 31-Jan-2006
Re: Visitor Counter New Pages
Posted: 5 Jul 25, 04:40   in response to: Soulportals in response to: Soulportals
 
  Click to reply to this thread Reply
The counter that's provided by the jAlbum widgets is only slightly better than a random number generator. It doesn't differentiate between you visiting your own page, someone refreshing the page, someone coming back to the page after having seen it a dozen times already, or a search bot hitting the page. In short, it's telling you almost nothing useful.

The tools provided by your webhost, typically something like awstats, will be marginally better, but not wonderful.

Alas, the only semi-reliable way to track visitors to your pages is Google Analytics. And these days, it misses huge numbers of visitors because of various types of browser blocking.
Soulportals

Posts: 23
Registered: 28-Jan-2015
Re: Visitor Counter New Pages
Posted: 13 Jul 25, 06:39   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Thank you for the feedback.
RobM

Posts: 3,941
Registered: 4-Aug-2006
Re: Visitor Counter New Pages
Posted: 13 Jul 25, 12:42   in response to: Soulportals in response to: Soulportals
 
  Click to reply to this thread Reply
I agree with what Jeff says above, but just so you know…

I believe the problem is with the page type variable and the values used. For widgets to work the page type should be either index or slide. You have used, for example
PAGE_NAME = 'Publications';


I think you would need to change the template so that the pageType variable was equal to ‘index’. That is replace ‘Publications’ with ‘index’ wherever you entered ‘Publications’.

Not tried it but it is what I think is the cause of the widgets not appearing on your custom pages.

Edited by: RobM on 13 Jul 2025, 21:40
Just tested the widgets with several skins and older version of jAlbum. Widgets do not appear on any template pages regardless of the name used for pageType or widgetPageType variables.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums