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

Commit fd3cdc0

Browse files
author
Robert Kummer
committed
updated readme
1 parent 38511d0 commit fd3cdc0

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

README.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ Add `'Analytics' => 'Ipunkt\LaravelAnalytics\AnalyticsFacade',` to `aliases` in
3030
<dl>
3131
<dt>tracking_id</dt><dd>Tracking ID</dd>
3232
<dt>tracking_domain</dt><dd>Tracking domain, unset or set to "<code>auto</code>" for automatic fallback</dd>
33+
<dt>display_features</dt><dd>enabling the display features plugin, possible values: <code>(true|false)</code></dd>
3334
<dt>anonymize_ip</dt><dd>anonymize users ip, possible values: <code>(true|false)</code></dd>
3435
<dt>auto_track</dt><dd>auto tracking current pageview, possible values: <code>(true|false)</code></dd>
36+
<dt>debug</dt><dd>enabling the debug mode, possible values: <code>(true|false)</code></dd>
3537
</dl>
3638

3739
## Usage
@@ -144,6 +146,33 @@ For tracking a custom script line within the embedded analytics code.
144146
public function trackCustom($customCode);
145147

146148

149+
### Analytics::enableDisplayFeatures()
150+
151+
Context: Controller, Action code
152+
153+
Enabling the auto tracking, overriding the configuration setting `auto_track`.
154+
155+
/**
156+
* enable display features
157+
*
158+
* @return GoogleAnalytics
159+
*/
160+
public function enableAutoTracking();
161+
162+
163+
### Analytics::disableDisplayFeatures()
164+
165+
Context: Controller, Action code
166+
167+
Disabling the auto tracking, overriding the configuration setting `auto_track`.
168+
169+
/**
170+
* disable display features
171+
*
172+
* @return GoogleAnalytics
173+
*/
174+
public function disableAutoTracking();
175+
147176
### Analytics::enableAutoTracking()
148177

149178
Context: Controller, Action code
@@ -153,7 +182,7 @@ Enabling the auto tracking, overriding the configuration setting `auto_track`.
153182
/**
154183
* enable auto tracking
155184
*
156-
* @return void
185+
* @return GoogleAnalytics
157186
*/
158187
public function enableAutoTracking();
159188

@@ -167,7 +196,7 @@ Disabling the auto tracking, overriding the configuration setting `auto_track`.
167196
/**
168197
* disable auto tracking
169198
*
170-
* @return void
199+
* @return GoogleAnalytics
171200
*/
172201
public function disableAutoTracking();
173202

src/Ipunkt/LaravelAnalytics/Providers/GoogleAnalytics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function enableDisplayFeatures()
180180
}
181181

182182
/**
183-
* disable auto tracking
183+
* disable display features
184184
*
185185
* @return GoogleAnalytics
186186
*/

0 commit comments

Comments
 (0)