Skip to main content

Installing the Terpli Virtual Budtender Plugin

This guide will walk you through the process of installing the Terpli virtual budtender plugin on your Treez Ecommerce site. This installation requires Google Tag Manager (GTM) and can optionally be configured with a dedicated page.

Treez Support avatar
Written by Treez Support
Updated this week

Prerequisites

  • Access to your Google Tag Manager (GTM) account

  • 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

  1. Log in to your Google Tag Manager account and navigate to the "Tags" section in your container workspace

  2. Click the "New" button to create a new tag

  3. Name your tag "Terpli plugin" (or similar)

  4. Click on "Tag Configuration" and select "Custom HTML"

    1. In the HTML field, paste the following code:

      <script id="terpliScript" async="true" src="https://assets.terpli.io/TerpliPlugin.js"></script>
  5. Under "Triggering," select "All Pages" (Page View) to ensure the plugin loads throughout your site

    1. Note: You can also restrict the plugin from showing up on specific pages by building an exception for those pages

  6. Click "Save" to save your new tag

  7. 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:

  1. In your Treez Ecommerce Prismic, create a new "General Landing Page"

  2. Set the URL slug to "budtender"

  3. Add a "CodeEmbed" slice to your page

  4. In the Plain Text field of the CodeEmbed, add the following HTML:

    <div id="terpli_container"></div>
  5. Configure other page settings as desired (we recommend adding some additional content to enhance the page)

  6. Save and publish your page

Verification

After installation, verify that the plugin is working correctly by:

  1. Visiting your store's website

  2. Confirm that the Terpli virtual budtender plugin appears

    1. 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.

Did this answer your question?