1import { Controller } from "@hotwired/stimulus"; 2 3export default class extends Controller { 4 static values = { 5 eventName: String, 6 }; 7 8 track() { 9 if (!this.hasEventNameValue) return; 10 11 // Track with Fathom 12 if (typeof fathom !== "undefined") { 13 fathom.trackEvent(this.eventNameValue); 14 } 15 16 // Track with PostHog 17 if (typeof posthog !== "undefined") { 18 posthog.capture(this.eventNameValue); 19 } 20 } 21};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.