Title: Security concern, inappropriate code
Last modified: August 22, 2016

---

# Security concern, inappropriate code

 *  [Gagan Deep Singh](https://wordpress.org/support/users/gagan0123/)
 * (@gagan0123)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/security-concern-inappropriate-code/)
 * Plugin has explicitly used its own google analytics code which is sending data
   to plugin author’s account for any site thats using this plugin.
 *     ```
       <script type="text/javascript">
         var _gaq = _gaq || [];
         _gaq.push(['_setAccount', 'UA-38371699-1']);
         _gaq.push(['_trackPageview']);
         (function() {
           var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
           ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
           var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
         })();
       </script>
       ```
   
 * This is written even before any headers are sent, and will cause error on many
   sites as well.
 * [https://wordpress.org/plugins/kofthitscounter/](https://wordpress.org/plugins/kofthitscounter/)

The topic ‘Security concern, inappropriate code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/kofthitscounter.svg)
 * [KOFT Post Hits Counter](https://wordpress.org/plugins/kofthitscounter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kofthitscounter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kofthitscounter/)
 * [Active Topics](https://wordpress.org/support/plugin/kofthitscounter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kofthitscounter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kofthitscounter/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Gagan Deep Singh](https://wordpress.org/support/users/gagan0123/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/security-concern-inappropriate-code/)
 * Status: not resolved