ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Counting views of weblog entries - count registering 2 hit's per view???

July 30, 2007 5:44pm

Subscribe [3]
  • #1 / Jul 30, 2007 5:44pm

    hothousegraphix

    851 posts

    I’ve just implemented EE’s Entry “Views” Tracking Tag.

    Documentation can be found here:

    On my single entry template I have:

    {exp:weblog:entries weblog="articles" entries limit="1" track_views="one"}

    And on multiple listing page which displays entry summaries I have:

    {exp:weblog:entries weblog="articles" display_by="week" week_sort="desc" show_current_week="yes" start_day="Sunday" limit="3"}
    <h3 class="leadArticle"><a href="http://{title_permalink=site/article_page}">{exp:char_limit total="40"}{title}{/exp:char_limit}</a></h3>
    <span class="view_count">{if view_count_one == 0}(no views){/if}
    
    //View Count
    {if view_count_one == 1}({view_count_one} view){/if}{if view_count_one > 1}({view_count_one} views){/if} | //End View Count 
    
    <span class="comment_count">{comment_total} comments</span></span>by: {articleAuthor}
    {if articleImage ==""}{articleSummary}<a href="http://{title_permalink=site/article_page}">...more</a>{if:else}
    {articleImgThumb}
    {articleSummary}<a href="http://{title_permalink=site/article_page}">...more</a>{/if}
    {/exp:weblog:entries}

    For some reason, when I view an entry, it registers 2 view.

    Any Idea how to correct?

  • #2 / Jul 30, 2007 6:23pm

    Michael Rog

    179 posts

    I have experienced this also… just in testing, I noticed that each time a page is refreshed, it registers two views to that entry. Weird. (But I use Google Analytics, so I don’t really rely on EE’s functionality for pageview counting…)

  • #3 / Jul 30, 2007 6:30pm

    hothousegraphix

    851 posts

    Yeah, I’m not using this for anything other than user info…I think it’s a cool little feature.

    I’ve had a few others view my project to rule out the “testing” scenario. It seems to be happening when the weblog entries are accessed by anyone which makes me wonder if I’ve done something incorrectly.

  • #4 / Jul 31, 2007 11:16am

    hothousegraphix

    851 posts

    Mods…is it possible to transfer this thread to Technical Support?

    Thanks

  • #5 / Jul 31, 2007 6:41pm

    hothousegraphix

    851 posts

    Mods…should I just post new to Technical Support Forum, or is it possible to move this thread?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases