Firing a custom event
Call the globalghostlyx() function after the tracking script has loaded:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Track user interactions beyond pageviews using the GhostlyX JavaScript API.
ghostlyx() function after the tracking script has loaded:
ghostlyx('event', 'Button clicked')
ghostlyx('event', 'Purchase', { revenue: 49.99, plan: 'pro' })
if (typeof ghostlyx === 'function') {
ghostlyx('event', 'Sign up started')
}