Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Callback for Monarch by Logic Hop

Callback for Monarch by Logic Hop adds a Javascript callback to the Monarch Social Sharing Plugin. Simply install the plugin and a callback is automat

Callback for Monarch by Logic Hop adds a Javascript callback to the Monarch Social Sharing Plugin. Simply install the plugin and a callback is automatically available when any Monarch social share or follow button is clicked.

Now you can trigger custom events when a social share or follow button has been clicked. The callback is available for use in your pages, posts or Javascript files – Simply add the following code:

<script>
    function logichop_monarch_callback (stats) {
        console.log( 'logichop_monarch_callback' );
        console.log( stats );
        // Your Javascript code here
    } 
</script>

When a Monarch event is triggered the stats parameter is sent to the logichop_monarch_callback function with the following values:

  • action
    • The action performed. Typically 'share', 'follow' or 'media'.
  • network
    • The network for which the action was triggered. 'Facebook', 'Twitter', etc.
  • media_url
    • Image URL when media is shared.
  • post_id
    • ID of the page or post where the button was triggered.

Interested in Content Personalization for Wordpress? See how we're using Monarch with Logic Hop – Check out our tutorial at: https://logichop.com/track-social-shares/

Author Logic Hop
Profile
Contributors logichop
Tags callback, javascript, monarch, Share, sharing, social

This plugin requires the Monarch Social Sharing Plugin by Elegant Themes.

  1. Unzip the callback-for-monarch-by-logic-hop.zip file
  2. Upload the callback-for-monarch-by-logic-hop folder to the /wp-content/plugins/ directory
  3. Activate the plugin through the 'Plugins' menu in WordPress

1.0.0

  • Initial version

How The Callback Works

Callback for Monarch by Logic Hop calls a Javascript function named 'logichop_monarch_callback' when a Monarch social share action is triggered.

Share  
Download
Version 1.0.0

Requires WordPress version: 4.0.1 or higher

Compatible up to: 4.6.3

Last Updated 28 Nov 2016

Date Added: 28 Nov 2016

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

0 stars
0 ratings
169 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0