diff --git a/components/forms/TrackingCodeForm.js b/components/forms/TrackingCodeForm.js index fd679ab2..e75260f7 100644 --- a/components/forms/TrackingCodeForm.js +++ b/components/forms/TrackingCodeForm.js @@ -4,10 +4,12 @@ import { useRouter } from 'next/router'; import Button from 'components/common/Button'; import FormLayout, { FormButtons, FormRow } from 'components/layout/FormLayout'; import CopyButton from 'components/common/CopyButton'; +import useConfig from 'hooks/useConfig'; export default function TrackingCodeForm({ values, onClose }) { const ref = useRef(); const { basePath } = useRouter(); + const { trackerScriptName } = useConfig(); return ( @@ -24,7 +26,9 @@ export default function TrackingCodeForm({ values, onClose }) { rows={3} cols={60} spellCheck={false} - defaultValue={``} + defaultValue={``} readOnly />