mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-05 13:05:14 -05:00
1327d536a3
GitOrigin-RevId: 3935d671bdf5299b720f319fd7d8c6879d1819b9
15 lines
620 B
JavaScript
15 lines
620 B
JavaScript
// tracking code from https://help.hotjar.com/hc/en-us/articles/115009336727-How-to-Install-Your-Hotjar-Tracking-Code
|
|
export const initializeHotjar = (hotjarId, hotjarVersion) =>
|
|
(function (h, o, t, j, a, r) {
|
|
h.hj =
|
|
h.hj ||
|
|
function () {
|
|
;(h.hj.q = h.hj.q || []).push(arguments)
|
|
}
|
|
h._hjSettings = { hjid: hotjarId, hjsv: hotjarVersion }
|
|
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, 'https://static.hotjar.com/c/hotjar-', '.js?sv=')
|