Team Stacker
Merged in a post:
Integration with Google Analytics and Hotjar
N
Nicolas Gonzalez
We need to integrate the two apps mentioned in order to perform data analysis, for this it is necessary to add scripts in the header so that the applications are integrated.
I leave scripts for the applications:
Google Analytics:
<!-- Google tag (gtag.js) --><script async src="https://www.googletagmanager.com/gtag/js?id=G-RLHX3JPZV4"></script> <script>window.dataLayer = window.dataLayer || []; function gtag () {dataLayer.push (arguments);} gtag ('js', new Date ()); gtag ('config', 'G-RLHX3JPZV4');</script>
Hotjar:
<!-- Hotjar Tracking Code for my site --> <script>(function (h, o, t, j, a, r) {h.hj=h.hj||function () {(h.hj.q=h.hj.q|| []) .push (arguments)}; H._hjSettings= {hjid:3410284, hjsv:6}; a=o.getElementsByTagName ('head') [0]; r=o.createElement ('script'); r.async=t+h.hjsettings.hjid+j+h.settings.hjid+j+h.settings.hjid+jh.settings.hjid+jh.settings.hjid+jh.settings.hjid+jh.settings.hjid+jh.settings.hjid+jh.settings.hjid+jh.settings.hjid+jh.settings.hjid+jh.settings.hjid+jh.settings.hjid+jh.settings.hjid+jh.settings.hjid+jh.settings.hjid+jh.settings.hjid+jh.settings.hjid+jings.hjsv; a.appendChild (r);}) (window, document, 'https://static.hotjar.com/c/hotjar-','.js?sv =');</script>
Team Stacker
Hi Nicolas Gonzalez, I believe you're speaking to support about this - they'll help you get these put into your app!
Sam Davyson
generally available
This feature is now available! Contact support to add a script to your app.
Paul Cheek
🙌
Jason Little
yay! just preparing my portal for launch and this will be super helpful!
Benjamin
in progress
A
Ambroise Dhenain
Sam Davyson How do you intend to implement this?
One simple way could be to allow app-wide settings, such as custom JS where we could put this kind of scripts.
It'd also allow better flexibility for app-wide custom scripting (e.g: change colors based on the current authenticated user, by also applying some specific CSS classes in
<body>
that depends on the current user role)This feature could address a wider need than just basic analytics, depending on the implementation.
Sam Davyson
under review
We're thinking about how we can enable this, stay tuned.