Sending click events to Google Analytics in WordPress: the easy way

This is working in my WordPress site. Remember we are using the plugin “Per page head”, which allows you to add content into the section for a specific page, like custom JS or custom HTML. This is the custom code added: <script>// <![CDATA[ jQuery(document).ready(function($){ $(‘.class-name-of-the-button’).click(function() { ga(‘send’, ‘event’, { eventCategory: ‘Outbound Link’, eventAction: ‘click’, eventLabel: … Read more

add most viewed post by google analytic in loop [closed]

If you have Yoast’s Analytics plugin, this wouldn’t be super hard. However, it will require some coding knowledge. I won’t spell everything out for you, but I will point you in the right direction. Without Yoast, you’ll have to review Lots of Documentation Load Yoast GA Files/Classes and Analytics ID from Yoast (or use Google … Read more

How Can I Add OnClick Event To A Specific WordPress Menu Link

This is not really a WordPress specific question, but since WordPress does not provide customization for menu items, I think you’re gonna need this. You can use .bind() in jQuery to add an event to user’s click on an specific item. Take a look at this: jQuery(document).ready(function(){ jQuery( “#menu-item-57” ).bind( “click”, function() { goog_report_conversion (‘tel:800-123-4567’); … Read more

Detect When User Reads Full Article? [closed]

Haven’t seen a plugin that does this, since each theme would differ. But for a custom solution that would work with Google Analytics events see #9 here: https://searchenginewatch.com/sew/how-to/2287906/10-google-analytics-custom-events-that-track-the-untrackable OP also found this more specific article: http://cutroni.com/blog/2014/02/12/advanced-content-tracking-with-universal-analytics/ (These are in comments above, just posted to make it faster for those looking for something similar to find … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)