Skip to content

Commit

Permalink
remove hotjar script (kids-first#2848)
Browse files Browse the repository at this point in the history
  • Loading branch information
evans-g-crsj authored Nov 30, 2020
1 parent 3b0371d commit c4cf973
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
17 changes: 0 additions & 17 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,6 @@
-->

<title>Kids First Data Portal</title>
<!-- Hotjar Tracking Code for https://portal.kidsfirstdrc.org/ -->
<script>
(function (h, o, t, j, a, r) {
if (!t || !a) return;
h.hj =
h.hj ||
function () {
(h.hj.q = h.hj.q || []).push(arguments);
};
h._hjSettings = { hjid: a, hjsv: 6 };
a = o.getElementsByTagName('head')[0];
r = o.createElement('script');
r.async = 1;
r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
a.appendChild(r);
})(window, document, '%REACT_APP_HOTJAR_HOST%', '.js?sv=', '%REACT_APP_HOTJAR_ID%');
</script>
</head>

<body>
Expand Down
3 changes: 2 additions & 1 deletion src/services/analyticsTracking/usersnap.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// ref https://help.usersnap.com/docs/developers-api-documentation#section-basics-for-usersnap-classic-widget
import { userSnapApiKey } from '../../common/injectGlobals';

export const initUserSnap = () => {
if (!userSnapApiKey) {
return;
}

window.onUsersnapCXLoad = function (api) {
api.init();
};

const script = document.createElement('script');
script.async = true;
script.src = `https://widget.usersnap.com/load/${userSnapApiKey}?onload=onUsersnapCXLoad`;
Expand Down

0 comments on commit c4cf973

Please sign in to comment.