This question may be related to a resolved thread.
I’m experiencing a problem with entry views tracking adding 5 counts for each single view. I’m creating a crude flagging system to allow users to report dead links. There is an ajax link on an entry page with a ajax response page which has a single tag on it, see examples below.
The page with an ajax link:
{exp:channel:entries}
......stuff
<div class="toolbar">
Posted: {entry_date format="%d %M %Y"} |
<span><a href="http://{permalink=directory/flag}" class="load_link">Report Dead Link</a></span>{if member_group == '1'} | Reports: {view_count_one}{/if}
</div>
[removed]
(function($) {
$(function() {
$('.load_link').click(function() {
$(this).closest('span').load(this.href);
return false;
});
});
})(jQuery);
[removed]{/exp:channel:entries}
The response template:
<html>
<body>
{exp:channel:entries channel="directory" limit="1" track_views="one"}Thanks for the report!{/exp:channel:entries}
</body>
</html>As you can see, it couldn’t be a simpler setup and yet each time I click on a “Report Dead Link” link the count is increased by a factor of “5”.
Any ideas on why this could be happening? In a previous thread with a similar problem none of the answers applied to my code.
Thanks