Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2015-05-05 03:47:18

hjrw
Member
From: Peoria (Phoenix) AZ
Registered: 2012-10-01
Posts: 180

StatCounter Question

I am using StatCounter via php for several of my "PAGES."  I have one counter for the HOME page, identified by

             if (G_STYLE == 'CE4-PAGES-HOME') {

one for my GALLERIES page

             elseif (G_STYLE == 'CE4-PAGES-GALLERIES') {

and one for my CLUBS page (a main navigation menu item)

             elseif (G_PATH == 'CLUBS') {

My site is photographs-now.com. 

What I would like to do is add another StatCounter instance to a particular Gallery (route-66).  How do I identify that page so that I can add another elseif clause to the php code?  The path to the gallery is /public_html/photo-now/galleries/003-route-66.

Thanks!

Offline

#2 2015-05-05 04:25:20

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: StatCounter Question

I think you should be able to use G_PATH
or G_SLUG
http://ce4.theturninggate.net/docs/doku … _functions


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2015-05-05 06:01:44

hjrw
Member
From: Peoria (Phoenix) AZ
Registered: 2012-10-01
Posts: 180

Re: StatCounter Question

Thanks!  G_SLUG appears to be working.  For those using StatCounter code, they seem to have changed the downloadable code eliminating the "\" escape code for embedded single quotes.  This caused a fatal error according to the php code testers.  Upon editing in Notepad++, I compared the earlier code downloads with the latest one and noted the missing "\" characters.  I added them into the code and all is well.  The counter is counting.

Offline

Board footer

Powered by FluxBB