Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Commit 9f4a706

Browse files
author
Robert Kummer
authored
updated readme
1 parent 8c4761a commit 9f4a706

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Then edit `analytics.php` in `config` to your needs. We do config merge in the s
7272
<dt>anonymize_ip</dt><dd>anonymize users ip, possible values: <code>(true|false)</code></dd>
7373
<dt>auto_track</dt><dd>auto tracking current pageview, possible values: <code>(true|false)</code></dd>
7474
<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>
7576
</dl>
7677

7778
### Environment-based Configuration
@@ -87,6 +88,7 @@ Here is the mapping of configuration value and the environment-based names:
8788
<dt>anonymize_ip</dt><dd>ANALYTICS_ANONYMIZE_IP (true)</dd>
8889
<dt>auto_track</dt><dd>ANALYTICS_AUTO_TRACK (true)</dd>
8990
<dt>debug</dt><dd>ANALYTICS_DEBUG (true on local environment)</dd>
91+
<dt>optimize_id</dt><dd>ANALYTICS_OPTIMIZE_ID</dd>
9092
</dl>
9193

9294
This behaviour was integrated with version 1.3.2.
@@ -577,3 +579,16 @@ Returns the nonce generated for the Content Security Policy Header.
577579
public function cspNonce();
578580

579581
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.

0 commit comments

Comments
 (0)