Prerequisites
Access to your Google Tag Manager (GTM) account
GTM can be implemented on your Treez Ecommerce website by following these instructions.
Access to your Treez Ecommerce Prismic account
A subscription with Terpli to use their services
Installation Steps
Part 1: Adding the Terpli Script via Google Tag Manager
Log in to your Google Tag Manager account and navigate to the "Tags" section in your container workspace
Click the "New" button to create a new tag
Name your tag "Terpli plugin" (or similar)
Click on "Tag Configuration" and select "Custom HTML"
In the HTML field, paste the following code:
<script id="terpliScript" async="true" src="https://assets.terpli.io/TerpliPlugin.js"></script>
Under "Triggering," select "All Pages" (Page View) to ensure the plugin loads throughout your site
Note: You can also restrict the plugin from showing up on specific pages by building an exception for those pages
Click "Save" to save your new tag
Back in your container workspace, make sure to click the "Submit" button in the top-right of the screen to push all newly saved changes
Part 2: Creating a Dedicated Page (Optional)
If you want a dedicated page for the Terpli virtual budtender:
In your Treez Ecommerce Prismic, create a new "General Landing Page"
Set the URL slug to "budtender"
Add a "CodeEmbed" slice to your page
In the Plain Text field of the CodeEmbed, add the following HTML:
<div id="terpli_container"></div>
Configure other page settings as desired (we recommend adding some additional content to enhance the page)
Save and publish your page
Verification
After installation, verify that the plugin is working correctly by:
Visiting your store's website
Confirm that the Terpli virtual budtender plugin appears
If using a dedicated page, navigate to yourdomain.com/budtender and confirm the budtender interface appears instead of the plugin in the bottom-right
Troubleshooting
If the plugin doesn't appear:
Verify that your GTM container is properly installed on your site
Check that the tag is published and not in draft mode
Ensure the HTML code is exactly as specified above
Clear your browser cache and reload the page
For additional assistance, contact Treez Support.



