If you wish to keep track of the tags which users frequently visit as well as the posts they visit, and on a per user basis. Add the following code after the lines:
$post_views = intval(get_post_meta($post->ID, 'views', true));
if( !update_post_meta($post->ID, 'views', ($post_views+1)) ) {
add_post_meta($post->ID, 'views', 1, true);
}
in the file postviews_plus.php, the data is stored in the usermeta table with the field name of tagview_ and then the name of your tag.
CODE TO ADD BELOW
//User Tracking Code
global $user_ID;
get_currentuserinfo();
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
$meta_key = "tagview_" . $tag->name;
$tag_views = intval(get_usermeta($user_ID, $meta_key, true));
echo $tag_views;
if( !update_usermeta($user_ID, $meta_key, ($tag_views+1)) ) {
update_usermeta($user_ID, $meta_key, 1);
}
}
}
//End of User Tracking Code