Page views increments by by TWO for each view
Posted: 02 September 2008 07:25 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  112
Joined  09-15-2002

hi

I want to track how many times a permalink page is viewed. I have added the code and it works in a fashion. However what I don’t understand is that if I refresh the page in my browser it increases the numbers of view by TWO instead of one.

Does anyone know why this is happening and how to stop i?

You can see it here:
http://mobsocnet.com/index.php/dailynews/permalink/social_networking_conference_london_2008/

Just refresh and see it increment by TWO each time :-(

The code on the permalink page includes this

>>
{exp:weblog:entries weblog=”{my_weblog}” orderby=“date” sort=“desc” limit=“15” track_views=“one”}
>> Number of times this page has been viewed: {view_count_one}

I might be using this > track_views=“one” < on another page - should I change that use of this code to say this > track_views=“two” < ?

Thanks
Steve

Profile
 
 
Posted: 02 September 2008 09:25 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12381
Joined  04-29-2002

Hi, Steve. If you change to track_views=“two” on a different page, does the first one go back to incrementing by one?

Which EE version and Build are you running? You can find that information at the bottom of any EE control panel page.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 02 September 2008 09:52 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  206
Joined  05-15-2008

Aside from getting that counting correctly, i’d recommend Google Analytics (google.com/analytics) for your site in order to gather the most/accurate information. It’s free and easy to implement. Just my 2 cents!

 Signature 
Profile
 
 
Posted: 02 September 2008 10:54 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  112
Joined  09-15-2002

hi Sue

Thanks for your quick response. I have now fixed the problem.

On the permalink page I had the code > track_views=“one” < within TWO sets of {exp:weblog:entries} on the same page and when I removed the code > track_views=“one” < from one of them - the counter increment went up by only 1 on a web page refresh.

All sorted
Thank you Sue.

Also Thanks Jack

I have just added Google Analytics to my site. Looks like good info will flow from it!
Cheers
Steve

Profile
 
 
Posted: 02 September 2008 10:57 AM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12381
Joined  04-29-2002

Thanks for the assist, Jack.

3Gsteve, glad you were able to figure out the problem. Please don’t hesitate to post again if needed.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64912 Total Logged-in Users: 27
Total Topics: 81864 Total Anonymous Users: 26
Total Replies: 440105 Total Guests: 197
Total Posts: 521969    
Members ( View Memberlist )
Newest Members:  bjmohrAqua193Bios Elementmjpoteetguimogranwelshmrcfthenetmonkeybenekwhobutsb