This repository was archived by the owner on Feb 17, 2022. It is now read-only.
File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ Then edit `analytics.php` in `config` to your needs. We do config merge in the s
72
72
<dt >anonymize_ip</dt ><dd >anonymize users ip, possible values: <code >(true|false)</code ></dd >
73
73
<dt >auto_track</dt ><dd >auto tracking current pageview, possible values: <code >(true|false)</code ></dd >
74
74
<dt >debug</dt ><dd >enabling the debug mode, possible values: <code >(true|false)</code ></dd >
75
+ <dt >optimize_id</dt ><dd >enabling the optimze feature of [Google Analytics](https://support.google.com/optimize/answer/6262084)</dd >
75
76
</dl >
76
77
77
78
### Environment-based Configuration
@@ -87,6 +88,7 @@ Here is the mapping of configuration value and the environment-based names:
87
88
<dt >anonymize_ip</dt ><dd >ANALYTICS_ANONYMIZE_IP (true)</dd >
88
89
<dt >auto_track</dt ><dd >ANALYTICS_AUTO_TRACK (true)</dd >
89
90
<dt >debug</dt ><dd >ANALYTICS_DEBUG (true on local environment)</dd >
91
+ <dt >optimize_id</dt ><dd >ANALYTICS_OPTIMIZE_ID</dd >
90
92
</dl >
91
93
92
94
This behaviour was integrated with version 1.3.2.
@@ -577,3 +579,16 @@ Returns the nonce generated for the Content Security Policy Header.
577
579
public function cspNonce();
578
580
579
581
Available since 1.3.0.
582
+
583
+ ### Analytics::setOptimizeId()
584
+
585
+ /**
586
+ * set a custom optimize ID (the GTM-XXXXXX code)
587
+ *
588
+ * @param string $optimizeId
589
+ *
590
+ * @return AnalyticsProviderInterface
591
+ */
592
+ public function setOptimizeId($optimizeId);
593
+
594
+ Available sind 1.6.0.
You can’t perform that action at this time.
0 commit comments