Add Google Analytics bundle (#1530)

* Add Sylius Analytics Plugin

* Use null instead of tilde

* Add post install message

* Add google analytics bundle

* Better configuration

* Fixed suggested change
This commit is contained in:
Joachim Løvgaard
2023-07-19 09:27:57 +02:00
committed by GitHub
parent d0e8c12b04
commit 3854261694
2 changed files with 20 additions and 0 deletions
@@ -0,0 +1,9 @@
setono_google_analytics:
gtag:
properties:
- measurement_id: '%env(GOOGLE_ANALYTICS_MEASUREMENT_ID)%'
# If you want to use tag manager instead of gtag, just remove the lines above and enable tag_manager below
# tag_manager:
# containers:
# - container_id: '%env(GOOGLE_ANALYTICS_CONTAINER_ID)%'
@@ -0,0 +1,11 @@
{
"bundles": {
"Setono\\GoogleAnalyticsBundle\\SetonoGoogleAnalyticsBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"GOOGLE_ANALYTICS_MEASUREMENT_ID": "YOUR_GOOGLE_ANALYTICS_MEASUREMENT_ID"
}
}