yuvalo on "[Plugin: WP Google Analytics Events] 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/

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 162 تاريخ : چهارشنبه 19 خرداد 1395 ساعت: 21:00