fix: add js_escaped_string filter for ga_4_id
This commit is contained in:
@@ -29,7 +29,7 @@ course_mode_class = course_mode if course_mode else ''
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', '${ga_4_id}');
|
||||
gtag('config', '${ga_4_id | n, js_escaped_string}');
|
||||
</script>
|
||||
% endif
|
||||
</head>
|
||||
|
||||
@@ -170,7 +170,7 @@ from common.djangoapps.pipeline_mako import render_require_js_path_overrides
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', '${ga_4_id}');
|
||||
gtag('config', '${ga_4_id | n, js_escaped_string}');
|
||||
</script>
|
||||
% endif
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ from openedx.core.djangolib.markup import HTML
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', '${ga_4_id}');
|
||||
gtag('config', '${ga_4_id | n, js_escaped_string}');
|
||||
</script>
|
||||
% endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user