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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user