plugin-icon

Callback for Monarch by Logic Hop

제작자: 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 …
버전
1.0.0
활성화된 설치 항목
30
최근 업데이트일
Dec 1, 2016
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 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/

무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 4.6.30
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.