import { OrderedList, ListItem, Tag } from '@chakra-ui/react'
import { useState } from 'react'
type GtmInstructionsProps = {
type: 'standard' | 'popup' | 'bubble'
}
export const GtmInstructions = ({ type }: GtmInstructionsProps) => {
switch (type) {
case 'standard': {
return
}
case 'popup': {
return
}
case 'bubble': {
return
}
}
}
const StandardInstructions = () => {
// const [windowSizes, setWindowSizes] = useState({
// height: '100%',
// width: '100%',
// })
// const jsCode = parseInitContainerCode({
// publishId: chatbot?.publishId ?? '',
// backgroundColor: chatbot?.themeColors.chatbotBackground.value,
// customDomain: chatbot?.customDomains[0],
// })
// const headCode = `${typebotJsHtml}
// `
// const elementCode = `
`
return (
On your GTM account dashboard, click on Add a new tag
Choose Custom HTML tag type
Paste the code below:
{/* sendGtmCopyEvent('standard')}
/> */}
On your webpage, you need to have an element on which the typebot will
go. It needs to have the id typebot-container:
{/*
setWindowSizes({
height: sizes.heightLabel,
width: sizes.widthLabel,
})
}
/>
*/}
)
}
const PopupInstructions = () => {
// const [inputValue, setInputValue] = useState(0)
return (
On your GTM account dashboard, click on Add a new tag
Choose Custom HTML tag type
Paste the code below:
{/* setInputValue(settings.delay ?? 0)}
/>
sendGtmCopyEvent('popup')}
/> */}
)
}
const BubbleInstructions = () => {
// const [inputValues, setInputValues] = useState<
// Pick
// >({
// proactiveMessage: undefined,
// button: {
// color: '',
// iconUrl: '',
// },
// })
return (
On your GTM account dashboard, click on Add a new tag
Choose Custom HTML tag type
Paste the code below:
{/* setInputValues({ ...settings })}
/>
sendGtmCopyEvent('bubble')}
/> */}
)
}