[wordpress插件] Callback for Monarch by Logic Hop通过Logic Hop回调Monarch

wordpress 插件 文章 2020-03-16 00:00 449 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Callback for Monarch by Logic Hop adds a Javascript callback to the Monarch Social Sharing Plugin.

由Logic Hop进行的Monarch回调向Monarch Social Sharing插件添加了Javascript回调。

Simply install the plugin and a callback is automatically available when any Monarch social share or follow button is clicked.

只需安装插件,当单击任何Monarch社交共享或关注按钮时,就会自动提供回调。

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:

该回调可在您的页面,帖子或Javascript文件中使用-只需添加以下代码:

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

触发Monarch事件时,会将具有以下值的 stats 参数发送到 logichop_monarch_callback 函数:

    • action

    • 动作

        • The action performed.

        • 已执行的操作。

          Typically ‘share’, ‘follow’ or ‘media’.

        • 通常是“分享”,“关注”或“媒体”。

      • network

      • 网络

          • The network for which the action was triggered.

          • 为其触发操作的网络。

            ‘Facebook’, ‘Twitter’, etc.

          • ‘Facebook’,‘Twitter’等。

        • media_url

        • media_url

            • Image URL when media is shared.
            • 共享媒体时的图像URL。

          • post_id

          • post_id

              • ID of the page or post where the button was triggered.
              • 触发按钮的页面或帖子的ID。

            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/

            对WordPress的内容个性化感兴趣?了解我们如何将Monarch与Logic Hop结合使用–在以下网址查看我们的教程:https://logichop.com/track-social-shares/

            p>

            >

安装步骤

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

此插件需要使用“优雅主题”的“君主社交共享”插件。

    1. Unzip the callback-for-monarch-by-logic-hop.zip file
    2. 解压缩用于monarch-by-logic-hop.zip的文件

    3. Upload the callback-for-monarch-by-logic-hop folder to the /wp-content/plugins/ directory
    4. 将“ for-monarch-by-logic-hop”文件夹上载到 / wp-content / plugins / 目录

    5. Activate the plugin through the ‘Plugins’ menu in WordPress
    6. 通过WordPress中的“插件”菜单激活插件

下载地址
https://downloads.wordpress.org/plugin/callback-for-monarch-by-logic-hop.1.0.0.zip
-EOF-

AI助手支持GPT4.0