ID; $ac_api_key = get_user_meta( $userid, "ac_api_key", true ); $ac_postid = $_GET["postid"]; $outsidelist = $_GET["outside"]; if ( strlen( $ac_postid ) == 0 && strlen ( $outsidelist ) == 0 ) { $posts_id = array(); $posts = $wpdb->get_results( " SELECT ID, post_title, post_author FROM {$wpdb->posts} WHERE post_status = 'publish' AND post_author = {$userid} AND post_type = 'post' " ); wp_cache_flush(); foreach ( $posts as $post ) { $ac_postid = get_post_meta( $post->ID, "ac_postid", true ); if ( strlen( $ac_postid ) > 0 ) { array_unshift( $posts_id, $ac_postid ); } wp_cache_flush(); } $onlyoutsidelink = admin_url("admin.php?page=atcontent/statistics.php&outside=1"); ?>

AtContent Statistics

Show outside reposts

" . 'Could not get statistics from atcontent.com. ' . 'You should have Pro account.
' . 'Upgrade for Pro account here' . "
" ; } else { echo 'Something gets wrong. ' . $stat_result["Reason"] ; } } if ( $stat_result["IsOK"] == true ) { ?> type-post status-publish format-standard hentry category-uncategorized alternate iedit author-self" id="post-">
Title On My Blog Views Repost Views Increase Rate Facebook Twitter LinkedIn
Title On My Blog Views Repost Views Increase Rate Facebook Twitter LinkedIn
”" href="" class="row-title"> 0 ? $poststat["OriginalViews"] : "—";?> 0 ? $poststat["RepostViews"] : "—"; ?> 0 ? number_format_i18n ( $poststat["IncreaseRate"] ) . '%' : "—"; ?> = 0 ? number_format_i18n ( $poststat["FacebookHits"] ) : "—"; ?> = 0 ? number_format_i18n ( $poststat["TwitterHits"] ) : "—"; ?> = 0 ? number_format_i18n ( $poststat["LinkedInHits"] ) : "—"; ?>
0 ) { $deatils = 2; $repost_title_answer = atcontent_api_get_title( $ac_postid ); $repost_title = ""; if ( $repost_title_answer["IsOK"] == true ) { $repost_title = $repost_title_answer["Title"]; } else { wp_die( "Something gets wrong. Please try again" ); } $listheader = "Statistics for \"" . $repost_title . "\""; $another_stat_link = 'View outsite reposts only'; if ( $outsidelist == "1" ) { $deatils = 1; $listheader = "Outside reposts for \"" . $repost_title . "\""; $another_stat_link = 'View complete statistics for this post'; } ?>

">Back to posts View statistics on AtContent

" . 'Could not get statistics from atcontent.com. ' . 'You should have Pro account.
' . 'Upgrade for Pro account here' . "" ; } else { echo 'Something gets wrong. ' . $stat_result["Reason"] ; } } else { $stat_info = $stat_result["PostsStats"][0]; ?>

Summary

Original views: 0 ? $stat_info["OriginalViews"] : "N/A"; ?>
Repost views: 0 ? $stat_info["RepostViews"] : "N/A"; ?>
Increate rate: 0 ? number_format_i18n ( $stat_info["IncreaseRate"] ) . '%' : "N/A"; ?>

Details

Url Views Facebook Twitter LinkedIn
Url Views Facebook Twitter LinkedIn
= 0 ? $stat_domain_info["Facebook"] : "—" ; ?> = 0 ? $stat_domain_info["Twitter"] : "—" ; ?> = 0 ? $stat_domain_info["LinkedIn"] : "—" ; ?>
= 0 ? $details_info["Facebook"] : "—" ; ?> = 0 ? $details_info["Twitter"] : "—" ; ?> = 0 ? $details_info["LinkedIn"] : "—" ; ?>

Details are not available
Turn on Advanced Tracking for this post to view details

get_results( " SELECT ID, post_title, post_author FROM {$wpdb->posts} WHERE post_status = 'publish' AND post_author = {$userid} AND post_type = 'post' " ); wp_cache_flush(); foreach ( $posts as $post ) { $ac_postid = get_post_meta( $post->ID, "ac_postid", true ); if ( strlen( $ac_postid ) > 0 ) { array_push( $posts_id, $ac_postid ); } wp_cache_flush(); } $allstatlink = admin_url("admin.php?page=atcontent/statistics.php"); ?>

AtContent Statistics for Outside Reposts

Back to statistics

" . 'Could not get statistics from atcontent.com. ' . 'You should have Pro account.
' . 'Upgrade for Pro account here' . "" ; } else { echo 'Something gets wrong. ' . $stat_result["Reason"] ; } } else { ?>
Url Reposts Views Facebook Twitter LinkedIn
Url Reposts Views Facebook Twitter LinkedIn
Post 0 ? $stat_info["RepostViews"] : "—" ; ?> = 0 ? $stat_info["FacebookHits"] : "—" ; ?> = 0 ? $stat_info["TwitterHits"] : "—" ; ?> = 0 ? $stat_info["LinkedInHits"] : "—" ; ?>
= 0 ? $stat_domain_info["Facebook"] : "—" ; ?> = 0 ? $stat_domain_info["Twitter"] : "—" ; ?> = 0 ? $stat_domain_info["LinkedIn"] : "—" ; ?>
= 0 ? $details_info["Facebook"] : "—" ; ?> = 0 ? $details_info["Twitter"] : "—" ; ?> = 0 ? $details_info["LinkedIn"] : "—" ; ?>