bayviewken
Forum Replies Created
-
That is correct. attachment-sitemap.xml is supposed to still appear, so Google will more quickly find the pages which now return HTTP code 410.
However, I’m seeing two references to that in my sitemap.xml, which doesn’t seem right. I’m creating a new thread about that.
Forum: Plugins
In reply to: [Social Media Feather | social media sharing] Cookies from sharethisIf you’re following these instructions, you need to revert to v1.7.9 to get a version before ShareThis added tracking to the plugin.
While I’m happy to know that the Social Media Feather developer made money from their excellent efforts by selling, this is a deal killer for me too. RIP
Forum: Plugins
In reply to: [Social Media Feather | social media sharing] Cookies from sharethisUpdate: It appears that v1.7.11 is ok too if you have a copy.
Forum: Plugins
In reply to: [Zero Spam for WordPress] 404 failed to load resourcePlease reconsider this behavior.
WP_DEBUG should not effectively disable a plugin I have installed.
I use WP_DEBUG to debug my own development, not the development of plugins from others.Excellent. Good to know it should work with all browsers.
The single quotes inside the javascript are changed to character entity 39 instead, but the code still works despite that.
If you want to see what I mean, view the source at https://www.blackjackinfo.com/
By the way, that code works despite the single-quotes being mangled by esc_attr inside the plugin. I was surprised to see that both of these work, at least in Firefox and Chrome:
<a href="#" onclick="alert('clicked1');">Click 1</a><br> <a href="#" onclick="alert('clicked2');">Click 2</a><br>Hmm, that second link example was supposed to replace the single quotes with ampersand-hashtag-0-3-9, but the message posting function is too smart for that. You’ll have to manually make the swap.
I have not tested other browsers.
I’m sure you meant the Google Analytics plugin by Yoast, not the SEO plugin.
However, having tried the Yoast GA plugin for this purpose myself, I would not recommend it.
Here is my code to do Social button tracking with the new Google Universal Analytics code.
@caleb280: If you are using the older Google code, just change the onclick syntax to be similar to what you originally asked.Here is the code:
function google_analytics_social_media_feather($def_list, $out_params, $context, $vars, $params) { foreach ($def_list as $key => $value) { $url = $vars['url']; $url = str_replace('%3A',':',$url); $url = str_replace('%2F','/',$url); $def_list[$key]['onclick'] = "ga('send','social',{'socialNetwork':'$key','socialAction':'$context','socialTarget':'$url'});"; } return $def_list; } add_filter( 'synved_social_button_list_markup', 'google_analytics_social_media_feather', 10, 5);Like marky10000, I cannot authenticate with my Google account using the latest stable 5.2.7.
After pasting in the code and pressing Enter, I get “There were no changes to save”