PHPackages                             setono/sylius-google-ads-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. setono/sylius-google-ads-plugin

ActiveSylius-plugin[Utility &amp; Helpers](/categories/utility)

setono/sylius-google-ads-plugin
===============================

Google Ads plugin for Sylius.

v2.6.0(2mo ago)334.4k1[3 issues](https://github.com/Setono/SyliusGoogleAdsPlugin/issues)MITPHPPHP &gt;=8.1CI passing

Since Aug 24Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/Setono/SyliusGoogleAdsPlugin)[ Packagist](https://packagist.org/packages/setono/sylius-google-ads-plugin)[ GitHub Sponsors](https://github.com/Setono)[ RSS](/packages/setono-sylius-google-ads-plugin/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (10)Dependencies (57)Versions (38)Used By (0)

Sylius plugin for Google Ads
============================

[](#sylius-plugin-for-google-ads)

[![Latest Version](https://camo.githubusercontent.com/855ed57743eadaea2bcf47686050cdca4ea3c57b410439634f0ae035e1dea0a1/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f73796c6975732d676f6f676c652d6164732d706c7567696e2f762f737461626c65)](https://packagist.org/packages/setono/sylius-google-ads-plugin)[![Software License](https://camo.githubusercontent.com/273a9046341e2c8ddee8fcb2c1efddad1978934e3b7a96bc4d032e9359db767c/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f73796c6975732d676f6f676c652d6164732d706c7567696e2f6c6963656e7365)](LICENSE)[![Build Status](https://github.com/Setono/SyliusGoogleAdsPlugin/workflows/build/badge.svg)](https://github.com/Setono/SyliusGoogleAdsPlugin/actions)

This plugin tracks conversions in your Sylius store. It's done with the [Google Ads API](https://developers.google.com/google-ads/api/docs/start)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
------------

[](#installation)

### Step 1: Install gRPC

[](#step-1-install-grpc)

Internally this plugin uses the [google-ads-php](https://github.com/googleads/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

[](#step-2-install-and-enable-plugin)

```
composer require setono/sylius-google-ads-plugin
```

Add the bundle to your `config/bundles.php` before the `SyliusGridBundle`:

```
