Skip to content

Commit

Permalink
Fix: Wrong mixin names
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto committed Jan 25, 2021
1 parent 3b0a2eb commit 3549196
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ If you have a single site setup, you can adjust the configuration under the key
| `host` | `null` | If you have set a [custom domain], you can set it here. Example: `stats.jonnitto.ch` |
| `outboundLinks` | `false` | If you want the enable [outbound link click tracking], set this to `true` |
| `hashBasedRouting` | `false` | If you want the enable [Hash-based routing], set this to `true` |
| `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] |
| `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] |

### Multi-site setup

Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/Fusion/Component/TrackingCode.fusion
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
prototype(Carbon.Plausible:Component.TrackingCode) < prototype(Neos.Fusion:Component) {
enable = ${Configuration.setting('Carbon.Plausible.enable')}
disableBecauseOfCookie = ${!!request.httpRequest.cookieParams.disabledPlausible}
doNotTrack = ${q(node).is('[instanceof Carbon.Plausible.Mixin:DoNotTrack]') && q(node).property('plausibleDoNotTrack')}
doNotTrack = ${q(node).is('[instanceof Carbon.Plausible:Mixin.DoNotTrack]') && q(node).property('plausibleDoNotTrack')}

hasCustomEventMixin = ${q(node).is('[instanceof Carbon.Plausible.Mixin:CustomEvent]')}
hasCustomEventMixin = ${q(node).is('[instanceof Carbon.Plausible:Mixin.CustomEvent]')}
eventName = ${this.hasCustomEventMixin ? q(node).property('plausibleCustomEventName') : null}
eventJSON = ${this.eventName ? String.trim(q(node).property('plausibleCustomEventJSON')) : null}

Expand Down

0 comments on commit 3549196

Please sign in to comment.