WordPress Comments Evolved is tracking your plugin usage
-
Comments Evolved tracks your usage data. It’s embedded at /includes/lib/frontend.php Now, the proper thing to do would have been to add an admin meta box and value for both of these instead of silently tracking what comment activity each wordpress download has been doing.
<br /> function comments_evolved_get_disqus_count($url = "") {<br /> if(empty($url)){ $url = get_permalink(); }<br /> $options = get_option("comments-evolved");<br /> if(!empty($options["disqus_shortname"])){<br /> $link = 'https://disqus.com/api/3.0/threads/details.json?api_key=qaoZg7DHagkn8xUf9ZqYRacHZI3CuBmGpu5InMmtXgtRzCnq6iGwtn7Fbwq1uysH&forum=' . $options["disqus_shortname"] . '&thread:link=' . urlencode($url);<br /> $link_body = wp_remote_retrieve_body(wp_remote_get($link));<br /> $json = json_decode($link_body);<br /> if(!empty($json)){<br /> return $json->response->posts;<br /> }<br /> }<br /> return 0;<br /> }</p> <p>function track_comment_posted_event() {<br /> $string = phpversion();<br /> if (substr( $string, 0, 1 ) === '5') {<br /> // get the Mixpanel class instance, replace with your project token<br /> $mp = Mixpanel::getInstance("d6943462b143b3727b42a1f59c2e27e7");<br /> // track an event<br /> $result = $mp->track('Comment Posted', array("plugin_name" => "gplus_comments", "site_domain" => home_url(), "php_version" => phpversion()));<br /> }<br /> return $result;<br /> }<br /> add_action('wp_insert_comment', 'track_comment_posted_event');<br />
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘WordPress Comments Evolved is tracking your plugin usage’ is closed to new replies.