import { TextArea } from 'react-basics'; import useMessages from 'hooks/useMessages'; import useConfig from 'hooks/useConfig'; export function TrackingCode({ websiteId }) { const { formatMessage, messages } = useMessages(); const { basePath, trackerScriptName } = useConfig(); const url = trackerScriptName?.startsWith('http') ? trackerScriptName : `${location.origin}${basePath}/${ trackerScriptName?.split(',')?.map(n => n.trim())?.[0] || 'script.js' }`; const code = ``; return ( <>

{formatMessage(messages.trackingCode)}