|
6 | 6 | 2. Add required environment variables to your `.env` file: |
7 | 7 | ```dotenv |
8 | 8 | USER_COM_FRONTEND_API_KEY="" |
9 | | - GOOGLE_ANALYTICS_TAG="" |
10 | 9 | USER_COM_ENCRYPTION_KEY=your-32-character-long-key |
11 | 10 | USER_COM_ENCRYPTION_IV=your-16-character-long-iv |
12 | 11 | MESSENGER_USER_COM_ASYNCHRONOUS_DSN="" |
|
16 | 15 | return [ |
17 | 16 | ... |
18 | 17 | BitBag\SyliusUserComPlugin\BitBagSyliusUserComPlugin::class => ['all' => true], |
19 | | - Spinbits\SyliusGoogleAnalytics4Plugin\SpinbitsSyliusGoogleAnalytics4Plugin::class => ['all' => true], |
20 | 18 | League\FlysystemBundle\FlysystemBundle::class => ['all' => true], |
21 | 19 | Setono\SyliusFeedPlugin\SetonoSyliusFeedPlugin::class => ['all' => true], |
22 | 20 | Setono\DoctrineORMBatcherBundle\SetonoDoctrineORMBatcherBundle::class => ['all' => true], |
|
51 | 49 | ``` |
52 | 50 | |
53 | 51 | >`UserComApiAwareTrait` contains mapping for annotations and for attributes which are required by UserCom integration. If you're using xml mapping, you should add mapping for those properties in your `Channel.orm.xml` file. |
54 | | -
|
55 | | -7. Take advantage of channel based configuration of GoogleAnalyticsPlugin by adding : |
56 | | - ```yaml |
57 | | - spinbits_sylius_google_analytics4: |
58 | | - id: "%env(GOOGLE_ANALYTICS_TAG)%" |
59 | | - enabled: true |
60 | | - ``` |
61 | | -8. Compile assets |
| 52 | + |
| 53 | +7. Compile assets |
62 | 54 | ```bash |
63 | 55 | yarn install && yarn build |
64 | 56 | ``` |
65 | | -9. Add API credentials and GTM to your channel configuration in admin panel. If you decided to extend different object, please make sure that API credentials are set. |
| 57 | +8. Add API credentials and GTM to your channel configuration in admin panel. If you decided to extend different object, please make sure that API credentials are set. |
66 | 58 |  |
67 | 59 |
|
68 | | -10. Configure consumer to run in supervisor: |
| 60 | +9. Configure consumer to run in supervisor: |
69 | 61 | ```bash |
70 | 62 | bin/console messenger:consume user_com_asynchronous |
71 | 63 | ``` |
0 commit comments