Gallery Thumb Clicks not counted
Posted: Thu Nov 19, 2020 11:03 pm
Hello,
I have category page https://www.domain.com/fr/category/Wife/ with thumbs outgoing to xhamster gallery urls, for example: https://xh.video/x/xheatsv
I clicked on some thumbs. After waiting few minutes, when I check Admin - List Thumbs stats, I see Thumbs Shows, but not Thumbs Clicks.
I put this code in <head>:
<script type="text/javascript" src="/scj/includes/js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('a[rot_id]').each(function(){
$(this).bind('click', function(){
if ($(this).attr('href').indexOf('?') == -1) $(this).attr('href', $(this).attr('href')+ '?' + $(this).attr('rot_id'));
});
});
});
</script>
And this is a thumb link:
<a title="<!--ALT-->" href="<!--URL-->" rot_id='<!--THUMB_LINK-->' rel="nofollow" target="_blank"><img class="lazy" src="<!--THUMB_URL-->" alt="<!--ALT-->"></a>
I sent you an example of category page in pm.
Thanks for your help.
I have category page https://www.domain.com/fr/category/Wife/ with thumbs outgoing to xhamster gallery urls, for example: https://xh.video/x/xheatsv
I clicked on some thumbs. After waiting few minutes, when I check Admin - List Thumbs stats, I see Thumbs Shows, but not Thumbs Clicks.
I put this code in <head>:
<script type="text/javascript" src="/scj/includes/js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('a[rot_id]').each(function(){
$(this).bind('click', function(){
if ($(this).attr('href').indexOf('?') == -1) $(this).attr('href', $(this).attr('href')+ '?' + $(this).attr('rot_id'));
});
});
});
</script>
And this is a thumb link:
<a title="<!--ALT-->" href="<!--URL-->" rot_id='<!--THUMB_LINK-->' rel="nofollow" target="_blank"><img class="lazy" src="<!--THUMB_URL-->" alt="<!--ALT-->"></a>
I sent you an example of category page in pm.
Thanks for your help.