Title: HTTPS being removed from GA tracking Code
Last modified: August 31, 2016

---

# HTTPS being removed from GA tracking Code

 *  Resolved [rjmartino](https://wordpress.org/support/users/rjmartino/)
 * (@rjmartino)
 * [10 years ago](https://wordpress.org/support/topic/https-being-removed-from-ga-tracking-code/)
 * There is a problem with the tracking code that the plugin (WP GA Events)…
 * **Here is what is supposed to be inserted into the header tag:**
 *     ```
       <script>
         (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
         (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
         m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
         })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
   
         ga('create', 'UA-26426309-2', 'auto');
         ga('send', 'pageview');
   
       </script>
       ```
   
 * BUT – here is what is actually inserted… it’s missing the “https:” for some reason.
   We either need to find another plugin or see
 *     ```
       <script>
         (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
         (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
         m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
         })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
   
         ga('create', 'UA-26426309-2', 'auto');
         ga('send', 'pageview');
   
       </script>
       ```
   
 * [https://wordpress.org/plugins/wp-google-analytics-events/](https://wordpress.org/plugins/wp-google-analytics-events/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [yuvalo](https://wordpress.org/support/users/yuvalo/)
 * (@yuvalo)
 * [10 years ago](https://wordpress.org/support/topic/https-being-removed-from-ga-tracking-code/#post-7451952)
 * Hey,
 * We will make sure to look at it before the next update.
 * Will keep you updated
 * yuval
 *  Plugin Author [yuvalo](https://wordpress.org/support/users/yuvalo/)
 * (@yuvalo)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/https-being-removed-from-ga-tracking-code/#post-7452035)
 * Hi,
 * We just released a fix for this on version 2.1.
 * I’m marking this ticket as resolved – let me know if you still have issues with
   this.
 * yuval

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘HTTPS being removed from GA tracking Code’ is closed to new replies.

 * ![](https://ps.w.org/wp-google-analytics-events/assets/icon-256x256.jpeg?rev=
   2189709)
 * [WP Google Analytics Events - No-Code Custom Event Tracking for Google Analytics](https://wordpress.org/plugins/wp-google-analytics-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-analytics-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-analytics-events/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-analytics-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-analytics-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-analytics-events/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [yuvalo](https://wordpress.org/support/users/yuvalo/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/https-being-removed-from-ga-tracking-code/#post-7452035)
 * Status: resolved