Feat add hotjar config to studio (#32109)

* feat: add hotjar tracking to studio

* feat: add hotjar config to studio

* fix: remove xss lint error
This commit is contained in:
connorhaugh
2023-04-20 12:39:05 -04:00
committed by GitHub
parent 06969e6c50
commit 01897d0f51
2 changed files with 4 additions and 1 deletions

View File

@@ -652,6 +652,9 @@ OPTIMIZELY_FULLSTACK_SDK_KEY = None
######################## GOOGLE ANALYTICS ###########################
GOOGLE_ANALYTICS_ACCOUNT = None
######################## HOTJAR ###########################
HOTJAR_ID = 00000
############################# TEMPLATE CONFIGURATION #############################
# Mako templating
import tempfile

View File

@@ -82,7 +82,7 @@ from openedx.core.release import RELEASE_LINE
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:3456569,hjsv:6};
h._hjSettings={hjid: Number("${settings.HOTJAR_ID |n, js_escaped_string}"),hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;