dwy/facebook-conversion
Composer 安装命令:
composer require dwy/facebook-conversion
包简介
Craft CMS plugin to send web events directly to Facebook
README 文档
README
Requirements
- Craft CMS 3.x, 4.x or 5.x
- Works best with Craft Commerce
- Facebook Pixel (See configuration how to obtain the Facebook Pixel)
- Facebook Business Manager (See Facebook Business)
- Facebook Access Token (See configuration how to obtain the Access Token)
Installation
The plugin can be installed via the Plugin Store in the Craft Control Panel.
Or, open your terminal, go the Craft project and install the plugin via Composer:
composer require dwy/facebook-conversion
./craft plugin/install facebook-conversion
Configuration
Pixel
- Open Facebook Business Manager
- Select your business
- Navigate to the Events Manager
- Click the Add Data Source button in the left menu
- Use "Web"
- Choose "Conversion API" as method.
- Fill in a Pixel name and website url
- After completing the Pixel creation, you'll find the Pixel-ID in the Settings tab of the Data Source. Copy your Pixel-ID to the Settings page of the plugin.
For more information, check the Create a Facebook Pixel in Business Manager article in the official documention.
Access Token
In the Events Manager:
- Select the pixel you want to associate with your Conversions API
- Navigate to the Settings tab
- Click Create Access Token below the "Set up manually" section
- Select the Facebook pixel you want your server events to be associated with
- Click Generate Access Token
- Copy your access token to the Settings page of the plugin
For more information, check the Create an Access Token for Conversions API in Guided Setup article in the official documention.
Test Event Code
Can be used to test the implementation.
- Navigate to the Events Testing tab in the Events Manager
- Copy the
test_event_codeto the Settings page of the plugin
Make sure an event that can be linked to a user by Facebook (i.e. Purchase event, by having a valid fbclid parameter, etc) is used when testing.
Template implementation
The Facebook Pixel can be added to your template by adding the facebook-conversion-head-tag hook to the head of the page and the facebook-conversion-body-tag to the body. For example:
<head> <meta charset="utf-8"> <title>My Website</title> {% hook 'facebook-conversion-head-tag' %} </head> <body> {% hook 'facebook-conversion-body-tag' %}
Please note, when the Facebook Pixel is already added by another plugin (E.g. SEOmatic) don't add the template hook to avoid duplication.
Brought to you by Digital With you, follow us on Instagram
dwy/facebook-conversion 适用场景与选型建议
dwy/facebook-conversion 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16.2k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 01 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「facebook」 「Craft」 「craftcms」 「craft-plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 dwy/facebook-conversion 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dwy/facebook-conversion 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 dwy/facebook-conversion 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Expand, collapse, change the status of, or delete multiple blocks in a Matrix field simultaneously.
Simple Sharing generates social media share links within CP entry pages, allowing you to quickly & easily share entries.
GraphQL authentication for your headless Craft CMS applications.
Supercharged text field validation.
Integrate with Snipcart.
Magento 2 Social Login extension is designed for quick login to your Magento 2 store without procesing complex register steps
统计信息
- 总下载量: 16.2k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2021-01-26