diff --git a/.env.example b/.env.example index 70bf5d588..f405ea03d 100644 --- a/.env.example +++ b/.env.example @@ -173,6 +173,9 @@ ANDROID_SHA256_CERT_FINGERPRINT=AC:73:8E:DE:EB:56:EA:CC:10:87:02:A7:65:37:7B:38: ## LogRocket # LOG_ROCKET_PROJECT_ID=xxxxx/some-project +# MICROSOFT CLARITY +# MS_CLARITY_TOKEN=xxxxxxxxx + ## Scout ## https://scoutapm.com/docs/ruby/configuration # SCOUT_KEY=YOURKEY diff --git a/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue b/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue index 7fb349c18..23ebdc23e 100644 --- a/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue +++ b/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue @@ -36,6 +36,7 @@ v-for="message in getReadMessages" :key="message.id" class="message--read ph-no-capture" + data-clarity-mask="True" :data="message" :is-a-tweet="isATweet" :is-a-whatsapp-channel="isAWhatsAppChannel" @@ -56,6 +57,7 @@ v-for="message in getUnReadMessages" :key="message.id" class="message--unread ph-no-capture" + data-clarity-mask="True" :data="message" :is-a-tweet="isATweet" :is-a-whatsapp-channel="isAWhatsAppChannel" diff --git a/app/views/layouts/vueapp.html.erb b/app/views/layouts/vueapp.html.erb index eba020c8b..32ab67e80 100644 --- a/app/views/layouts/vueapp.html.erb +++ b/app/views/layouts/vueapp.html.erb @@ -50,8 +50,8 @@ window.browserConfig = { browser_name: '<%= browser.name %>', } - window.errorLoggingConfig = '<%= ENV.fetch('SENTRY_DSN', '')%>' - window.logRocketProjectId = '<%= ENV.fetch('LOG_ROCKET_PROJECT_ID', '')%>' + window.errorLoggingConfig = '<%= ENV.fetch('SENTRY_DSN', '') %>' + window.logRocketProjectId = '<%= ENV.fetch('LOG_ROCKET_PROJECT_ID', '') %>' <% if @global_config['ANALYTICS_TOKEN'].present? %> <% end %> + <% if ENV.fetch('MS_CLARITY_TOKEN', nil).present? %> + + <% end %>