diff --git a/setono/google-analytics-bundle/1.0/config/packages/setono_google_analytics.yaml b/setono/google-analytics-bundle/1.0/config/packages/setono_google_analytics.yaml new file mode 100644 index 00000000..29f5679d --- /dev/null +++ b/setono/google-analytics-bundle/1.0/config/packages/setono_google_analytics.yaml @@ -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)%' diff --git a/setono/google-analytics-bundle/1.0/manifest.json b/setono/google-analytics-bundle/1.0/manifest.json new file mode 100644 index 00000000..01627ff9 --- /dev/null +++ b/setono/google-analytics-bundle/1.0/manifest.json @@ -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" + } +}