On the page that I display the details of a single Channel entry, I have the following:
{exp:channel:entries
channel="blogs"
disable="categories|category_fields|pagination"
dynamic="no"
track_views="one"
url_title="{segment_3}"
}
The URL where this page is displayed looks like this: www.domain.com/blogs/post/hello-world
. Because I am not using the second segment to contain the entry id or URL title (I reserve that for the pagination and Low Search hash), I have to set dynamic="no"
and url_title="{segment_3}"
.
The EE documentation says:
Single entry pages are ones that show only a single entry, specified dynamically by the ID number or URL Title in the URL, such as comment or permalink pages.
I have gone to "Tracking Preferences" and all tracking options are enabled. I have also set "Enable Caching?" to "No" for the template file containing my loop.
Does my setup mean I can't track views? Currently, I do not think it is working.
UPDATE 1:
In my page that lists all the blog entries, I create links using {url_title_path='blog/post'}
. On my single entry page, I thought I had to set dynamic="no"
, but it doesn't seem that I need to. The following works:
{exp:channel:entries
channel="blogs"
disable="categories|category_fields|pagination"
track_views="one"
url_title="{segment_3}"
}
Have I met all the requirements to enable entry tracking? It's still not working for me, though. I am able to make comments work -- doesn't that have similar requirements as entry tracking?
EDIT 2:
Here's my entire template file (which is being embedded in another template):
{exp:low_replace find="\r|\n|\t" replace="" regex="yes"}
{exp:channel:entries
channel="blogs"
disable="categories|category_fields|pagination"
track_views="one"
url_title="{segment_3}"
}
<h3>{title}</h3>
<img src="http://placehold.it/640x260/" width="640" height="260" alt=""/>
<ul class="inline post-details">
<li>
<span class="icon-user"></span>By <a href="/profile/#/">{author}</a>
</li>
<li>
<span class="icon-time"></span>{exp:nice_time date="{entry_date}" format="{format.date.international}"}
</li>
<li>
<span class="icon-comment"></span>{comment_total} Comments
</li>
<li>
<span class="icon-eye-open"></span>{view_count_one} Views
</li>
</ul>
{blog}
{/exp:channel:entries}
{embed="common/.comments"}
{/exp:low_replace}