How to set Google Analytics tracking code on WordPress plugin directory page?
How to set Google Analytics tracking code on WordPress plugin directory page?
How to set Google Analytics tracking code on WordPress plugin directory page?
Woocommerce + Google Analytics (Conversion Rate Not Working)
how does ‘init’ /’parse_request’ hook work for wordpress?
Google Analytics on a staging site
I do not think its because the tracking code is stripped out but that it never made it to your ‘Author Box.’ I’ll try to look into the plugin later, but my guess is that the plugin will filter the page’s content from hooks and filters.
You shouldn’t have a call to wp_head hook twice. Why does comments need its own call? Get rid of second call and see if that doesn’t break anything.
Hi Mark Kaplun and toscho, thank you for replying. I’ve figured out the culprit, it was caused by W3 Total Cache Plugin setting. Under Browser Cache, I have to untick this: Prevent caching of objects after settings change The weird string before every links is then removed.
Search code comes with wordpress.If you remove search box it does not mean that search page is removed. If you want that google should not crawl your search page then you can specify in your robot.txt file like below : Disallow: /search
If the HTML files are outside of your wordpress installation, you need to insert the Google Analytics tracking code into each of the HTML pages manually. For the WordPress pages, you can insert the code into your Theme’s header file (usually header.php) or similar or use one of the many plugins to do this.
I would use the Google Tag Manager firing options: Or Old school jQuery solution: function($){ $(‘.widget_class’).click(function() { ga(‘send’, ‘event’, ‘Sidebar Image’, ‘Promo Image’, ‘Clicked’); }); })(jQuery); Now you just add a class name to your links.