IntegrationsGoogle tag manager
Add AI Chat using Google Tag Manager
What is Google Tag Manager
Google Tag Manager (GTM) lets you manage and deploy custom JavaScript, without editing your website's code. This simplifies updates without needing developer involvement.
How to integrate with Inkeep
To add the Inkeep Chat Button using Google Tag Manager (GTM), we'll use a modified version of the standard JavaScript snippet. This approach includes scoping, dynamic loading, and controlled initialization for GTM compatibility.
Here's the GTM-friendly version of the Chat Button snippet after grabbing your API information:
Get an API key
- Go to the Inkeep Dashboard
- Select your project under Projects
- Go to the Integrations tab
- Click on Create integration
- Select Web
- Provide a Name and URL (optional) for the integration
- Click on Create
- Click the Example < /> button to get your API key and view suggested settings
Define the component in Google Tag Manager
- Navigate to your Google Tag Manager console
- Select your workspace and navigate to the Tags section
- Create a new Tag.
- For Tag Configuration, choose Custom HTML. And upload the following for the Chat Button:
- Update this script with your API key and desired settings.
- For Triggering, choose All Pages.
- Click save to have the Chat Button appear on your GTM synced website
Other Snippets
For the other integrations please refer to the JS Snippet examples in the UI Components Page section