wp_add_inline_script not adding when script_loader_tag filtered

The reason this is happening is because the markup that is filtered by script_loader_tag includes the inline scripts. So when you filter it and replace all the HTML tag for a particular script, your filter is removing those inline script tags. If you print out the original value of $tag from within your filter you … Read more

Are there any plugins yet that support Facebook Like, Google +1 and allow Social Interaction tracking on Google Analytics

This one is brand new: http://wordpress.org/extend/plugins/social-media-tracking/ and it sounds like it does what you want. But be watching Joost de Valk’s GA plugin. He mentioned just a few days ago in this thread that he’s working on it right now. He’s a prominent plugin author in the community and does good work. If you want … Read more

Can a plugin deactivate itself?

As far as I know, a plugin can be deactivated in these conditions: manual deactivation failed plugin upgrade remove or rename the containing folder changing the active plugin list in the database Hopefully someone else will come through and add to this if I missed any.

adding google event tracking to links in posts

Have a look at this article -> http://www.optimum7.com/internet-marketing/web-development/dynamic-google-analytics-event-tracking-for-wordpress.html Also to get the post title of the particular page. You could use the following jQuery ( Assuming you post title is wrapped in tag ). outbound_post_name = jQuery(‘h1’).html();

Tracking Disqus comments on Google Analytics

You can use that snippet just anywhere where it can be rendered on single pages. For example, you can paste this under functions.php of your theme: function hook_disqus_config(){ if( ! is_singular() ) return; ?> <script type=”text/javascript”> function disqus_config() { this.callbacks.onNewComment = [function(comment) { _gaq.push([‘_trackEvent’, ‘Disqus’, ‘New Comment’, comment.id]); }]; } </script> <?php } add_action( ‘wp_footer’, … Read more

Suspicious google tag manager

When I disable Content Visibility for Divi Builder then the tag goes away. Seems suspicious… maybe they got hacked or maybe they are bad cookies. Will try to move this to the proper reporting channels. AoD Technologies LLC is the developer. Edit: wanted to temper this with a third possibility of tracking the usage of … Read more

Installing google analytics code on wordpress blog

Since your question is about installing the google analytics code in WordPress, I will highly recommend you to install the UA-XXXXXX-X tracking code before the closing head tag “</head>“. Just edit the theme header.php file. You don’t need to create a child theme unless you are using someone else’s theme that could potentialy be updated … Read more