cjone2
Forum Replies Created
-
Great, thanks for the link.
It looks like the img.php now won’t create any new images hence not working with HTTPS image URLs, so nothing to do with your plugin.
As an update this is what the code in the cached version looks like:
<script data-cfasync="false">// Function to detect opted out users function __gaTrackerIsOptedOut() { return document.cookie.indexOf(disableStr + '=true') > -1; } // Disable tracking if the opt-out cookie exists. var disableStr = 'ga-disable-UA-32348920-1'; if ( __gaTrackerIsOptedOut() ) { window[disableStr] = true; } // Opt-out function function __gaTrackerOptout() { document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/'; window[disableStr] = true; } (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','__gaTracker'); __gaTracker('create', 'UA-32348920-1', 'auto'); __gaTracker('set', 'forceSSL', true); __gaTracker('require', 'displayfeatures'); __gaTracker('send','pageview');</script> <script> var monsterinsights_frontend={"js_events_tracking":"true","is_debug_mode":"false","download_extensions":"doc,exe,js,pdf,ppt,tgz,zip,xls","inbound_paths":"","home_url":"http:\/\/space-facts.com","track_download_as":"event","internal_label":"int","hash_tracking":"false"}; </script>
So seemingly triggering some sort of opt out option?
Have the exact same issue and message displayed in tag assistant.
Tracking doesn’t work unless logged in or I enable WP Fastest Cache (clearing cache does not help).
Both plugins were playing fine together until yesterday when I updated Monster Insights.
Not sure if relevant but disabling all the JS related options in WP Fastest Cache didn’t make a difference.
Forum: Plugins
In reply to: [WP Fastest Cache] Non-trailing Slash Redirects / URL RewritingFantastic, thanks a lot for adding.
Forum: Plugins
In reply to: [WordPress Popular Posts] View Stats InaccurateThanks Hector, I just switched off the “Combine JS” option in WP Fastest Cache and it’s looking much more accurate already so it looks like that was the issue specifically.
Forum: Plugins
In reply to: [WordPress Popular Posts] Views Inaccurate After Site MigrationIt was the caching plugin all along, despite it being deactivated. Had to strip everything WP Supercache had added to .htaccess and it is now all working fine, very weird how some pages were being affected and others not.
Really appreciate the help.
Forum: Plugins
In reply to: [WordPress Popular Posts] Views Inaccurate After Site MigrationHi Hector,
Many thanks, I’ve now noticed another plugin is not picking up changes made to it as is the body on some pages.
Interestingly the pages that get the top traffic (in GA) are those that show the default plugin settings and picking up views in the plugin while the pages now being reported as the top all show the plugin correctly.
Seems certain this is not anything to do with the plugin and there is something going on with the hosting, the plugin just picked up on it because it’s tracking views differently.
Forum: Plugins
In reply to: [WordPress Popular Posts] Views Inaccurate After Site MigrationHi, yes using the 2.3.7 before and the only site change since then was the WordPress update. Changed database passwords & user as well as having to set a specific IP for the database in WP config rather than localhost.
Removing the widget also gets rid of the one I want but keeps the other so there is definitely 2 versions of the site. Going to check this with the hosting company see if it’s a thing with WordPress.
Do you think the incorrect view number will be coming from this?
Thanks,
Forum: Plugins
In reply to: [WordPress Popular Posts] Views Inaccurate After Site MigrationJust noticed that on same pages the setting are not being implemented and it’s just using the default widget settings.
e.g. one page has this code to display as I want:/* <![CDATA[ */ jQuery(document).ready(function(){ jQuery.get('https://space-facts.com/wp-admin/admin-ajax.php', {action: 'wpp_ajax_get_popular', id: '4'}, function(data){ jQuery('#wpp-4').append(data); }); }); /* ]]> */
and the other uses this, the default settings:
/* <![CDATA[ */ jQuery(document).ready(function(){ jQuery.get('https://space-facts.com/wp-admin/admin-ajax.php', {action: 'wpp_ajax_get_popular', id: '2'}, function(data){ jQuery('#wpp-2').append(data); }); }); /* ]]> */
I imagine the two are connected