setono / sylius-criteo-plugin
Sylius plugin integrating Criteo tracking scripts
Installs: 15 788
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 2
Type:sylius-plugin
Requires
- php: >=7.4
- knplabs/knp-menu: ^3.3
- matomo/device-detector: ^4.3 || ^5.0
- setono/symfony-main-request-trait: ^1.0
- setono/tag-bag: ^2.0
- setono/tag-bag-bundle: ^3.0
- sylius/resource-bundle: ^1.6
- symfony/config: ^4.4 || ^5.4
- symfony/dependency-injection: ^4.4 || ^5.4
- symfony/event-dispatcher: ^4.4 || ^5.4
- symfony/form: ^4.4 || ^5.4
- symfony/http-foundation: ^4.4 || ^5.4
- symfony/http-kernel: ^4.4 || ^5.4
- symfony/security-bundle: ^4.4 || ^5.4
- thecodingmachine/safe: ^1.0
- twig/twig: ^2.14
Requires (Dev)
- matthiasnoback/symfony-config-test: ^4.3
- matthiasnoback/symfony-dependency-injection-test: ^4.3
- phpspec/phpspec: ^6.3
- phpunit/phpunit: ^9.5
- psalm/plugin-phpunit: ^0.17
- setono/code-quality-pack: ^2.2
- setono/sylius-behat-pack: ^0.2
- setono/sylius-tag-bag-plugin: ^1.1
- sylius/sylius: ^1.7
- symfony/browser-kit: ^4.4 || ^5.4
- symfony/debug-bundle: ^4.4 || ^5.4
- symfony/dotenv: ^4.4 || ^5.4
- symfony/intl: ^4.4 || ^5.4
- symfony/web-profiler-bundle: ^4.4 || ^5.4
- weirdan/doctrine-psalm-plugin: ^1.2
- dev-master
- v1.3.0
- v1.2.1
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.0
- v1.0.0-beta.4
- v1.0.0-beta.3
- v1.0.0-beta.2
- v1.0.0-beta
- dev-renovate/configure
- dev-dependabot/composer/sylius-labs/coding-standard-tw-4.1
- dev-dependabot/composer/piwik/device-detector-tw-4.3
- dev-dependabot/composer/phpspec/phpspec-tw-7.1
- dev-dependabot/add-v2-config-file
- dev-dependabot/composer/phpunit/phpunit-tw-9.5
- dev-dependabot/composer/lakion/mink-debug-extension-tw-2.0.0
This package is auto-updated.
Last update: 2024-12-10 15:36:56 UTC
README
Sylius plugin that integrates Criteo tracking scripts
Installation
Step 1: Download the plugin
Open a command console, enter your project directory and execute the following command to download the latest stable version of this plugin:
# Omit setono/sylius-tag-bag-plugin if you want to # override layout.html.twig as described at https://github.com/Setono/TagBagBundle#usage $ composer require setono/sylius-criteo-plugin setono/sylius-tag-bag-plugin
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the plugin
Then, enable the plugin by adding it to the list of registered plugins/bundles
in the config/bundles.php
file of your project:
<?php # config/bundles.php return [ Setono\TagBagBundle\SetonoTagBagBundle::class => ['all' => true], // Use this bundle or override layout.html.twig as described at https://github.com/Setono/TagBagBundle#usage Setono\SyliusTagBagPlugin\SetonoSyliusTagBagPlugin::class => ['all' => true], Setono\SyliusCriteoPlugin\SetonoSyliusCriteoPlugin::class => ['all' => true], ];
Step 3: Configure plugin
# config/packages/_sylius.yaml imports: # ... - { resource: "@SetonoSyliusCriteoPlugin/Resources/config/app/config.yaml" } # ...
Step 4: Import routing
# config/routes/setono_sylius_criteo.yaml setono_criteo_plugin: resource: "@SetonoSyliusCriteoPlugin/Resources/config/routing.yaml"
Step 5: Update your database schema
$ php bin/console doctrine:migrations:diff $ php bin/console doctrine:migrations:migrate
Step 6: Setup account
Login to your Sylius app admin and go to the Criteo page and click "Create" to create a new account. Fill in the account id of your Criteo account, make sure "enable" is toggled on, and choose which channel the Criteo account should be applied to. Please notice you should only make one account for each channel, or else you will end up with undefined behaviour.