|
9 | 9 | GOOGLE_ANALYTICS_TAG="" |
10 | 10 | USER_COM_ENCRYPTION_KEY=your-32-character-long-key |
11 | 11 | USER_COM_ENCRYPTION_IV=your-16-character-long-iv |
12 | | - MESSENGER_USER_COM_ASYNCHRONOUS="" |
| 12 | + MESSENGER_USER_COM_ASYNCHRONOUS_DSN="" |
13 | 13 | ``` |
14 | 14 | 3. Add plugin dependencies to `config/bundles.php` file. Make sure that none of the bundles are duplicated. |
15 | 15 | ```php |
|
33 | 33 | ... |
34 | 34 | ``` |
35 | 35 |
|
36 | | -4. Import routes in your `config/routes.yaml` file: |
| 36 | +5. Import routes in your `config/routes.yaml` file: |
37 | 37 | ```yaml |
38 | 38 | bitbag_sylius_user_com_plugin: |
39 | 39 | resource: "@BitBagSyliusUserComPlugin/config/routes.yaml" |
40 | 40 | ``` |
41 | 41 |
|
42 | | -5. Extend `Channel` entity `UserComApiAwareTrait` and implement `UserComApiAwareInterface` |
| 42 | +6. Extend `Channel` entity `UserComApiAwareTrait` and implement `UserComApiAwareInterface` |
43 | 43 | ```php |
44 | 44 | use BitBag\SyliusUserComPlugin\Trait\UserComApiAwareTrait; |
45 | 45 | use BitBag\SyliusUserComPlugin\Trait\UserComApiAwareInterface; |
|
50 | 50 | } |
51 | 51 | ``` |
52 | 52 | |
53 | | - >`UserComApiAwareTrait` contains mapping for annotations and for attributes which are required by UserCom integration. |
54 | | - > If you're using xml mapping, you should add mapping for those properties in your `Channel.orm.xml` file. |
| 53 | + >`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. |
55 | 54 |
|
56 | | -6. Take advantage of channel based configuration of GoogleAnalyticsPlugin by adding : |
| 55 | +7. Take advantage of channel based configuration of GoogleAnalyticsPlugin by adding : |
57 | 56 | ```yaml |
58 | 57 | spinbits_sylius_google_analytics4: |
59 | 58 | id: "%env(GOOGLE_ANALYTICS_TAG)%" |
60 | 59 | enabled: true |
61 | 60 | ``` |
62 | | -8. Run yarn install and yarn build to compile assets, or the alternative solution you use for your project |
| 61 | +8. Compile assets |
63 | 62 | ```bash |
64 | 63 | yarn install && yarn build |
65 | 64 | ``` |
66 | | -7. 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 |
| 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. |
67 | 66 |  |
68 | | -9. Configure consumer to run in supervisor: |
| 67 | +
|
| 68 | +10. Configure consumer to run in supervisor: |
69 | 69 | ```bash |
70 | 70 | bin/console messenger:consume user_com_asynchronous |
71 | 71 | ``` |
72 | | -10. While integrating with User.com via GTM, you can use `user_com_customer_info` in browser console to check currently logged in customer data. |
0 commit comments