# Chatflow tracking embed code (VAR) for Canvas Instructure LMS

**URL:** <https://community.hubspot.com/t/chatflow-tracking-embed-code-var-for-canvas-instructure-lms/46687>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [November 9, 2021, 8:36am UTC](https://community.hubspot.com/t/chatflow-tracking-embed-code-var-for-canvas-instructure-lms/46687 "2021-11-09T08:36:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rongen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rongen/32/69811_2.png) [@Rongen](https://community.hubspot.com/u/Rongen)\
**Post date:** [November 9, 2021, 8:36am UTC](https://community.hubspot.com/t/chatflow-tracking-embed-code-var-for-canvas-instructure-lms/46687/1 "2021-11-09T08:36:05Z")

</div>

Hi, can anyone help me customise our Hubspot tracking code to change to VAR?  
Our LMS doesn’t accept script type.

|   
  
 |

Example of what we’re using now via Zoho SalesIQ. We are now migrating to Hubspot.

`var $zoho=$zoho || {};$zoho.salesiq = $zoho.salesiq || {widgetcode: "xxxxxxxxxxxxxxxxxxxx", values:{},ready:function(){}};var d=document;var s=d.createElement("script");s.type="text/javascript";s.id="zsiqscript";s.defer=true;s.src="https://salesiq.zoho.com/widget";var t=d.getElementsByTagName("script")[0];t.parentNode.insertBefore(s,t);`

I really appreciate your help in advance. Thank you.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [November 9, 2021, 3:09pm UTC](https://community.hubspot.com/t/chatflow-tracking-embed-code-var-for-canvas-instructure-lms/46687/2 "2021-11-09T15:09:34Z")

</div>

Eek.

@Kevin-C , any thoughts here?

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [November 10, 2021, 6:05pm UTC](https://community.hubspot.com/t/chatflow-tracking-embed-code-var-for-canvas-instructure-lms/46687/3 "2021-11-10T18:05:41Z")

</div>

Thanks @dennisedson

Hey @Rongen  
I’m not 100% sure I understand the request

---

<div class="post-metadata">

**Author:** ![Rongen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rongen/32/69811_2.png) [@Rongen](https://community.hubspot.com/u/Rongen)\
**Post date:** [November 11, 2021, 3:55am UTC](https://community.hubspot.com/t/chatflow-tracking-embed-code-var-for-canvas-instructure-lms/46687/4 "2021-11-11T03:55:37Z")

</div>

Hi @Kevin-C - we need to embed our chatflow (chat bot) to our Canvas LMS. Their system doesn’t accept the script code. They only allow using variable to insert in their javascript file.

---

<div class="post-metadata">

**Author:** ![Rongen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rongen/32/69811_2.png) [@Rongen](https://community.hubspot.com/u/Rongen)\
**Post date:** [November 18, 2021, 11:03pm UTC](https://community.hubspot.com/t/chatflow-tracking-embed-code-var-for-canvas-instructure-lms/46687/5 "2021-11-18T23:03:54Z")

</div>

We managed to solve this by customising the code. It works now.

---

<div class="post-metadata">

**Author:** ![Ryan\_Sessel](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@Ryan\_Sessel](https://community.hubspot.com/u/Ryan_Sessel)\
**Post date:** [June 2, 2024, 4:38pm UTC](https://community.hubspot.com/t/chatflow-tracking-embed-code-var-for-canvas-instructure-lms/46687/6 "2024-06-02T16:38:20Z")

</div>

How did you resolve this?
