Skip to content

Commit

Permalink
fix: add js_escaped_string filter for ga_4_id
Browse files Browse the repository at this point in the history
  • Loading branch information
UvgenGen committed Apr 6, 2023
1 parent 4a551aa commit 18b8044
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lms/templates/certificates/accomplishment-base.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
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>
Expand Down
2 changes: 1 addition & 1 deletion lms/templates/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
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

Expand Down
2 changes: 1 addition & 1 deletion lms/templates/public_video_share_embed.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
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

Expand Down

0 comments on commit 18b8044

Please sign in to comment.