diff --git a/source/myscript.js b/source/myscript.js
index 6258531d401..da4d7669ebf 100644
--- a/source/myscript.js
+++ b/source/myscript.js
@@ -1,4 +1,9 @@
$(document).ready(function(){
+ const customerFeedback = sessionStorage.getItem("customerFeedback");
+
+ if (!customerFeedback) {
+ $('body').append("
");
+ }
$('header .links__icon').on('click', function (){
$("header .header__searchbar").hide();
@@ -18,5 +23,17 @@ $(document).ready(function(){
var sidebarScrollPosition = $('.wy-menu-vertical li.current>a').offset().top;
$('.wy-side-scroll').scrollTop(sidebarScrollPosition-120);
}
-
+
+ $('body').on('click', '.c-thermometer__emojis a', function(){
+ $(this).parent().hide();
+ sessionStorage.setItem("customerFeedback", "Done");
+ });
+
+ $('body').on('click', '.c-thermometer__emojis a', function(){
+ $('.c-thermometer__paragraph').text('Thank you for submitting your rating.');
+ setTimeout(() => {
+ $('.c-thermometer').fadeOut();
+ }, 3000);
+ });
+
});
\ No newline at end of file
diff --git a/source/templates/layout.html b/source/templates/layout.html
index 68d0ff51e47..f7a474d3a7f 100644
--- a/source/templates/layout.html
+++ b/source/templates/layout.html
@@ -44,10 +44,25 @@
gtag('js', new Date());
gtag('config', 'UA-67846571-1');
+
+ gtag('event', , {
+ 'event_category': ,
+ 'event_label': ,
+ 'value': <1>;
+
+ gtag('event', , {
+ 'event_category': ,
+ 'event_label': ,
+ 'value': <2>;
+
+ gtag('event', , {
+ 'event_category': ,
+ 'event_label': ,
+ 'value': <4>;
-
+