You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ It automatically includes optional unobtrusive **event tracking** for all outbou
13
13
- Automatic `pageview` tracking for all configured accounts, including tracking of 404 & 500 page errors (tracked as "Page Not Found" / "Page Error" events).
14
14
- Unobtrusive outbound, download, email & tel: link tracking - monitors all page clicks, rather than on page load (ie: works with links including those generated by Ajax etc on the page after page load).
15
15
- Uses Google Analytics `hitCallback` for tracking for outgoing links to register before load (ie: when no link `target` is set) to ensure tracker is successfully run before redirection.
16
-
- Tracking codes are automatically changed to `UA-DEV-[1-9]` if `SS_ENVIRONMENT_TYPE` is **not** live, or if page URL matches ?flush= to prevent bad data capture.
16
+
- Tracking codes are automatically changed to `G-XXXXXXXX-[1-9]` if `SS_ENVIRONMENT_TYPE` is **not** live, or if page URL matches ?flush= to prevent bad data capture.
17
17
18
18
### Event tracking
19
19
@@ -30,7 +30,9 @@ Event category names (eg: "Outgoing Links", "Downloads" etc) can be configured i
30
30
31
31
## Requirements
32
32
33
-
- Silverstripe ^4 || ^5
33
+
- Silverstripe ^6
34
+
35
+
For Silverstripe 4 & 5, please refer to the [Silverstripe5 branch](https://github.com/axllent/silverstripe-analytics-js/tree/silverstripe5).
34
36
35
37
For the deprecated `analytics.js` tracking method for Silverstripe 4, please refer to the [analytics.js branch](https://github.com/axllent/silverstripe-analytics-js/tree/3-analyticsjs).
36
38
@@ -50,22 +52,22 @@ Once installed the extension is automatically loaded if you provide at least one
50
52
```yaml
51
53
Axllent\AnalyticsJS\AnalyticsJS:
52
54
tracker:
53
-
- ['config', 'UA-1234567-1']
55
+
- ['config', 'G-XXXXXXXX']
54
56
```
55
57
56
58
The syntax is very similar to the official documentation, so things like secondary trackers or other configurations can be easily added.
0 commit comments