Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

360 B
Raw Blame
import { isServer } from '@/utils/client'

/**
 * Send Google Analytics event
 * @param eventName - event name
 * @param eventParams - event params
 */
export const sendGAEvent = (eventName: string, eventParams?: GtagEventParams): void => {
  if (isServer || typeof window.gtag !== 'function') {
    return
  }
  window.gtag('event', eventName, eventParams)
}