Download the PHP package setono/sylius-google-ads-plugin without Composer
On this page you can find all versions of the php package setono/sylius-google-ads-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download setono/sylius-google-ads-plugin
More information about setono/sylius-google-ads-plugin
Files in setono/sylius-google-ads-plugin
Package sylius-google-ads-plugin
Short Description Google Ads plugin for Sylius.
License MIT
Informations about the package sylius-google-ads-plugin
Sylius plugin for Google Ads
This plugin tracks conversions in your Sylius store. It's done with the Google Ads API instead of the default javascript tracking. It has a few benefits to do this:
- Easier to control the consent status for a given user
- Easier to change the value of an order after the fact
- No javascripts on your page to track Google Ads, which means faster page load
- You decide the ttl on your cookies, not Apple and their ITP
- No risk of losing tracking because of ad blockers
Installation
Step 1: Install gRPC
Internally this plugin uses the google-ads-php. To use that library properly
it's advised to install the gRPC PHP extension. It should work by just running pecl install grpc
and enabling the extension
in your php.ini
by adding extension=grpc.so
.
Step 2: Install and enable plugin
Add the bundle to your config/bundles.php
before the SyliusGridBundle
:
Step 3: Add configuration
Step 4: Create migration file
Step 5: Set up cronjobs
The first cronjob will process Google Ads conversions. Run this cronjob regularly, e.g. every 5 minutes:
The next cronjob will prune the conversions table. Run this job as often as you'd like, maybe daily:
Step 6: Map the Messenger command to an async transport (optional, but recommended)
The plugin uses the Symfony Messenger to dispatch a message (ProcessConversion
) which will trigger the processing
of a conversion. If you want to do this asynchronously, you can do something like the following in your messenger config:
This maps all messages implementing that interface to the async
transport.
Now the plugin is installed. Please read the next section to learn how to use it in your store.
Usage
To start using the plugin, go to https://your-domain.com/admin/google-ads and follow the instructions.
All versions of sylius-google-ads-plugin with dependencies
brick/phonenumber Version ^0.5.0
doctrine/collections Version ^1.6
doctrine/dbal Version ^2.13 || ^3.8
doctrine/orm Version ^2.7
doctrine/persistence Version ^1.3 || ^2.2 || ^3.2
google/auth Version ^1.26
google/gax Version ^1.19
googleads/google-ads-php Version ^27.2
knplabs/knp-menu Version ^3.1
ocramius/doctrine-batch-utils Version ^2.4
psr/event-dispatcher Version ^1.0
psr/log Version ^1.0 || ^2.0 || ^3.0
setono/composite-compiler-pass Version ^1.1
setono/doctrine-orm-trait Version ^1.0
sylius/channel Version ^1.0
sylius/channel-bundle Version ^1.0
sylius/core Version ^1.0
sylius/core-bundle Version ^1.0
sylius/order Version ^1.0
sylius/resource-bundle Version ^1.6
sylius/ui-bundle Version ^1.0
symfony/config Version ^6.4 || ^7.0
symfony/console Version ^6.4 || ^7.0
symfony/dependency-injection Version ^6.4 || ^7.0
symfony/event-dispatcher Version ^6.4 || ^7.0
symfony/event-dispatcher-contracts Version ^2.5 || ^3.3
symfony/form Version ^6.4 || ^7.0
symfony/http-foundation Version ^6.4 || ^7.0
symfony/http-kernel Version ^6.4 || ^7.0
symfony/messenger Version ^6.4 || ^7.0
symfony/options-resolver Version ^6.4 || ^7.0
symfony/routing Version ^6.4 || ^7.0
symfony/string Version ^6.4 || ^7.0
symfony/validator Version ^6.4 || ^7.0
symfony/workflow Version ^6.4 || ^7.0
twig/twig Version ^2.15 || ^3.4
webmozart/assert Version ^1.11