StatCounter User Forum  
StatCounter Free web tracker and counter

Go Back   StatCounter User Forum > StatCounter.com > Discussion

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 05-16-2008, 09:04 PM
cybercrypt13 cybercrypt13 is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Default statcounter and ajax pages

We have a website that is 100% ajax driven which means that we only have 1 index page. The other pages are actually more like controls that are pulled in within a region of the page and the header, footer and menus just sit there. This means they never leave the index.php page throughout their visit.

I'm trying to get the statcounter to register for other pages(controls) that are opened up and wondering if anyone else has tackled this task?

Thanks,

glenn
  #2  
Old 05-16-2008, 09:09 PM
Car Guy's Avatar
Car Guy Car Guy is offline
Moderator
 
Join Date: Jan 2007
Location: Vancouver, Canada
Posts: 4,927
Default

Hi

I'm no expert here, but the only one available at this moment.

I believe if you place the code in a footer that is common for all page loads, the counter should work. Your url will not change, thus be of no value in your stats, but your page titles should be available.
  #3  
Old 05-16-2008, 09:47 PM
cybercrypt13 cybercrypt13 is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Default

Thanks, its not quite that simple though. The footer is only loaded once ever unless you physically hit refresh. Ajax is quite different and more efficient than the old way of reloading new pages...

I had to download the js file from the stat counter server and write my own function so that I could physically call it when my controls load. I have that part working and am current dissecting the code to figure out how to get it to register the individual controls now. Was just wondering if there was an easier way.

Thanks,

glenn
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:49 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.