Download the PHP package dwy/facebook-conversion without Composer

On this page you can find all versions of the php package dwy/facebook-conversion. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package facebook-conversion

Facebook Conversion plugin for Craft CMS 3, 4 & 5

Requirements

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:

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:

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


All versions of facebook-conversion with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^3.1|^4.0|^5.0
facebook/php-business-sdk Version ^24.0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dwy/facebook-conversion contains the following files

Loading the files please wait ...