Download the PHP package setono/sylius-facebook-plugin without Composer
On this page you can find all versions of the php package setono/sylius-facebook-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download setono/sylius-facebook-plugin
More information about setono/sylius-facebook-plugin
Files in setono/sylius-facebook-plugin
Package sylius-facebook-plugin
Short Description Sylius plugin that tracks visitors and sends the data to Facebook
License MIT
Informations about the package sylius-facebook-plugin
Sylius Facebook Plugin
Track ecommerce events in your store and send them to Facebook to enable your marketing efforts inside Facebook.
Installation
Step 1: Download the plugin
Step 2: Enable the plugin
Then, enable the plugin by adding it to the list of registered plugins/bundles
in config/bundles.php
file of your project before (!) SyliusGridBundle
:
OPTIONAL: If you want to enable consent (i.e. cookie / GDPR) you can install the consent bundle.
Step 3: Configure plugin
Step 4: Import routing
Step 5: Choose your HTTP client implementation
Either you can install the default ones :
Or write your own HTTP client and call :
Step 6: Update your database schema
Step 7: Create a pixel
When you create a pixel in Facebook you receive a pixel id.
Now create a new pixel in your Sylius shop by navigating to /admin/facebook/pixels/new
.
Remember to enable the pixel and enable the channels you want to track.
Step 8: You're ready!
The events that are tracked are located in the EventSubscriber folder, but here's a list:
ViewContent
(i.e. product page views)AddToCart
InitiateCheckout
Purchase
ViewCategory
(this is a custom event that tracks taxon views)
Related links
- https://developers.facebook.com/docs/marketing-api/audiences/guides/dynamic-product-audiences/#setuppixel
- https://developers.facebook.com/docs/marketing-api/conversions-api
- https://developers.facebook.com/docs/marketing-api/conversions-api/using-the-api
- https://developers.facebook.com/docs/marketing-api/conversions-api/guides/business-sdk-features
- https://github.com/facebook/facebook-php-business-sdk
Contribute
Ways you can contribute:
- Translate messages to your mother tongue
- Create new event subscribers that handle Facebook events which are not implemented
Thank you!
All versions of sylius-facebook-plugin with dependencies
ext-json Version *
doctrine/collections Version ^1.6
doctrine/orm Version ^2.12
fakerphp/faker Version ^1.19
knplabs/knp-menu Version ^3.3
psr/event-dispatcher Version ^1.0
psr/log Version ^1.1 || ^2.0 || ^3.0
setono/meta-conversions-api-bundle Version ^0.1
setono/meta-conversions-api-php-sdk Version ^0.2
sylius/resource-bundle Version ^1.6
symfony/config Version ^5.4 || ^6.0
symfony/dependency-injection Version ^5.4 || ^6.0
symfony/event-dispatcher Version ^5.4 || ^6.0
symfony/form Version ^5.4 || ^6.0
symfony/http-foundation Version ^5.4 || ^6.0
symfony/http-kernel Version ^5.4 || ^6.0
symfony/options-resolver Version ^5.4 || ^6.0
symfony/routing Version ^5.4 || ^6.0
webmozart/assert Version ^1.11