Home Plugins callback for monarch by logic hop
Callback for Monarch by Logic Hop logo

Callback for Monarch by Logic Hop

by Logic Hop on WordPress.org

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 …

(0)

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:


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/

Active installations30+
Weekly downloads
12+9.09%
Version1.0.0
Last updated12/1/2016
WordPress version4.0.1
Tested up to4.6.29
Tags
javascriptmonarchsharesharingsocial