Initialization
Creating the client
import { tiun } from '@tiun/sdk';
tiun.init({
snippetId: 'YOUR_SNIPPET_ID',
language: 'en', // set to your site's language
});Configuration options
Option
Type
Default
Description
tiun.init({
snippetId: 'YOUR_SNIPPET_ID',
language: 'en',
onReady: () => console.log('ready')
});Environment setup
Full example
Last updated
Was this helpful?