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
+41-10Lines changed: 41 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,31 @@ By default, Plausible Analytics tracks every visitor to your website. When you'r
49
49
50
50
- Go to `your-domain.tld/~/disable-tracking`. This sets the flag and redirects the visitor to the homepage. Great for people without access to the Neos Backend.
51
51
- As an Editor, you can enable/disable the flag also in the Plausible management module: `your-domain.tld/neos/management/plausible`
52
+
- Add the component [Carbon.Plausible:Component.Toggle] to a document and click the button.
52
53
- You can do this also by yourself by following the [excluding guide on plausible.io]
53
54
55
+
### Tracking custom event goals with `data-analytics`
56
+
57
+
To use this feature, you have to enable the `dataAnalyticsTracking` setting. Register events in the HTML with the use of an attribute tag `data-analytics`.
58
+
59
+
**Note: Watch your quotes!** Especially in the props as we want to be able to create an object.
|`domain`|`null`| Set here the [plausible domain]. This setting is required |
73
-
|`host`|`null`| If you have set a [custom domain], you can set it here. Example: `stats.jonnitto.ch`|
74
-
|`hashBasedRouting`|`false`| If you want the enable [Hash-based routing], set this to `true`|
75
-
|`exclusions`|`false`| If you want to [exclude specific pages] from the analytics, you can set an array with strings or a string. If you want to load just the exclusion variant, set this to `true`|
76
-
|`outboundLinks`|`false`| If you want the enable [outbound link click tracking], set this to `true`|
77
-
|`customEvents`|`false`| If you want to set [custom events] in your javascript, set this to `true` or a string. If set to a string, this whole string gets included on every document. If you set custom events via Fusion or the [Carbon.Plausible:Mixin.CustomEvent] mixin, you don't have to set it to `true`. The snippet gets activated automatically if needed. The inline javascript get's minified with [JShrink]|
78
-
|`sharedLink`|`null`| If you have opened up your [website stats to the public] or created a [private and secure link], enter it to enable the embedded view of the stats in the backend. |
|`domain`|`null`| Set here the [plausible domain]. This setting is required |
96
+
|`host`|`null`| If you have set a [custom domain], you can set it here. Example: `stats.jonnitto.ch`|
97
+
|`hashBasedRouting`|`false`| If you want the enable [Hash-based routing], set this to `true`|
98
+
|`exclusions`|`false`| If you want to [exclude specific pages] from the analytics, you can set an array with strings or a string. If you want to load just the exclusion variant, set this to `true`|
99
+
|`outboundLinks`|`false`| If you want the enable [outbound link click tracking], set this to `true`|
100
+
|`customEvents`|`false`| If you want to set [custom events] in your javascript, set this to `true` or a string. If set to a string, this whole string gets included on every document. If you set custom events via Fusion or the [Carbon.Plausible:Mixin.CustomEvent] mixin, you don't have to set it to `true`. The snippet gets activated automatically if needed. The inline javascript get's minified with [JShrink]|
101
+
|`dataAnalyticsTracking`|`false`| If you want to enable `data-analytics` for tracking links and form submits set this to `true`. |
102
+
|`sharedLink`|`null`| If you have opened up your [website stats to the public] or created a [private and secure link], enter it to enable the embedded view of the stats in the backend. |
79
103
80
104
### Multi-site setup
81
105
@@ -109,7 +133,9 @@ Carbon:
109
133
110
134
The key of the site (e.g. `myfirstsite`) is the root node name found under Administration » Sites Management.
111
135
112
-
## Fusion Component
136
+
## Fusion Components
137
+
138
+
### Carbon.Plausible:Component.TrackingCode
113
139
114
140
The main Fusion component is [Carbon.Plausible:Component.TrackingCode]. This component gets included into [Neos.Neos:Page] under the path `plausibleTrackingCode`. So if you want to add a [custom event][custom events] to a ceratin document, you can do it like this:
0 commit comments