Run one of the following commands to add the module to your project:
npm install nuxt-tawk-to
pnpm add nuxt-tawk-to
yarn add nuxt-tawk-to
Add nuxt-tawk-to to the modules section of your nuxt.config.ts and provide your Tawk.to credentials:
export default defineNuxtConfig({
modules: ['nuxt-tawk-to'],
tawkTo: {
propertyId: 'your-tawk-property-id',
widgetId: 'your-widget-id'
}
})
This module comes with full TypeScript support. You can import the config types if needed:
import type { TawkToConfig } from 'nuxt-tawk-to/types'