Title: Callback for Monarch by Logic Hop
Author: Logic Hop
Published: <strong>28. november, 2016</strong>
Last modified: 1. december, 2016

---

Søg plugins

![](https://ps.w.org/callback-for-monarch-by-logic-hop/assets/banner-772x250.png?
rev=1542265)

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

![](https://ps.w.org/callback-for-monarch-by-logic-hop/assets/icon-256x256.png?rev
=1542265)

# Callback for Monarch by Logic Hop

 Af [Logic Hop](https://profiles.wordpress.org/logichop/)

[Download](https://downloads.wordpress.org/plugin/callback-for-monarch-by-logic-hop.1.0.0.zip)

 * [Detaljer](https://da.wordpress.org/plugins/callback-for-monarch-by-logic-hop/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/callback-for-monarch-by-logic-hop/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/callback-for-monarch-by-logic-hop/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/callback-for-monarch-by-logic-hop/#developers)

 [Support](https://wordpress.org/support/plugin/callback-for-monarch-by-logic-hop/)

## Beskrivelse

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/

## Installation

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

## FAQ

  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.

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“Callback for Monarch by Logic Hop” er open source-software. Følgende personer har
bidraget til dette plugin.

Bidragsydere

 *   [ Logic Hop ](https://profiles.wordpress.org/logichop/)

[Oversæt “Callback for Monarch by Logic Hop” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/callback-for-monarch-by-logic-hop)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/callback-for-monarch-by-logic-hop/),
tjek [SVN repository](https://plugins.svn.wordpress.org/callback-for-monarch-by-logic-hop/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/callback-for-monarch-by-logic-hop/)
via [RSS](https://plugins.trac.wordpress.org/log/callback-for-monarch-by-logic-hop/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 1.0.0

 * Initial version

## Meta

 *  Version **1.0.0**
 *  Senest opdateret **10 år siden**
 *  Aktive installationer **20+**
 *  WordPress-version ** 4.0.1 eller højere **
 *  Testet op til **4.6.30**
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/callback-for-monarch-by-logic-hop/)
 * Tags
 * [javascript](https://da.wordpress.org/plugins/tags/javascript/)[monarch](https://da.wordpress.org/plugins/tags/monarch/)
   [share](https://da.wordpress.org/plugins/tags/share/)[sharing](https://da.wordpress.org/plugins/tags/sharing/)
   [social](https://da.wordpress.org/plugins/tags/social/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/callback-for-monarch-by-logic-hop/advanced/)

## Bedømmelser

Der er endnu ikke indsendt nogen anmeldelser.

[Din anmeldelse](https://wordpress.org/support/plugin/callback-for-monarch-by-logic-hop/reviews/#new-post)

[Se alle anmeldelser](https://wordpress.org/support/plugin/callback-for-monarch-by-logic-hop/reviews/)

## Bidragsydere

 *   [ Logic Hop ](https://profiles.wordpress.org/logichop/)

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/callback-for-monarch-by-logic-hop/)

## Donér

Vil du gerne støtte udviklingen af dette plugin?

 [ Donér til dette plugin ](https://logichop.com)