Integration guide
Embed the Growl SDK in your app or website
Section titled “Embed the Growl SDK in your app or website”Embedding Growl SDK in your website is a simple process. All you need to do is add a small snippet of code to your website’s HTML.
Add Growl script
Section titled “Add Growl script”-
Get your script tag
The script tag is what loads Growl on your site. Here is a template of what it looks like:
<scriptsrc="https://cdn.withgrowl.com/sdk.js"data-growl-publisher-id="YOUR_PUBLISHER_ID"></script>Replace
YOUR_PUBLISHER_IDwith your actual publisher ID. \ -
Find Your Publisher ID
You can find your unique Publisher ID in the Growl Dashboard.
-
Add the script to your website
Once you have your script tag with your Publisher ID, add it to your website’s HTML file.
The best place to put the script is right before the closing
</head>tag of your HTML document. This is done to prevent content layout shifts on script load since the Growl script loads before your<body>tag.Here is an example of what your HTML file might look like after adding the script:
<!DOCTYPE html><html><head><title>My Awesome Website</title><scriptsrc="https://cdn.withgrowl.com/sdk.js"data-growl-publisher-id="YOUR_PUBLISHER_ID"></script></head><body><h1>Welcome to my website!</h1><p>Here is my content.</p><!-- ... other website content ... --></body></html> -
Verify Your Installation
After adding the script to your website:
- Save the changes to your HTML file.
- Upload the updated file to your web server if needed.
- Open your website in a web browser.
You should now see the Growl script
sdk.jsload in your browser’s network tab.
That’s it! Your Growl SDK is now embedded. Growl now captures all behavioral user data, but still needs to capture chat data. Follow this guide to send chat data to Growl.
If you have any trouble, please contact our support team.