承接 dwy/facebook-conversion 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Open Facebook Business Manager
  2. Select your business
  3. Navigate to the Events Manager
  4. Click the Add Data Source button in the left menu
  5. Use "Web"
  6. Choose "Conversion API" as method.
  7. Fill in a Pixel name and website url
  8. 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:

  1. Select the pixel you want to associate with your Conversions API
  2. Navigate to the Settings tab
  3. Click Create Access Token below the "Set up manually" section
  4. Select the Facebook pixel you want your server events to be associated with
  5. Click Generate Access Token
  6. 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.

  1. Navigate to the Events Testing tab in the Events Manager
  2. Copy the test_event_code to 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 我们能提供哪些服务?
定制开发 / 二次开发

基于 dwy/facebook-conversion 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 16.2k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2021-01-26