menu
Channels
# All channels
view-forward
# Announcements
view-forward
# App development
view-forward
# Aragon Agent
view-forward
# Aragon Client
view-forward
# Aragon Connect
view-forward
# aragonOS
view-forward
# aragonUI
view-forward
# Feature requests
view-forward
Team

User behavior tracker tool. Any suggestions ?

May 25, 2020 at 10:14am

User behavior tracker tool. Any suggestions ?

May 25, 2020 at 10:14am (Edited 1 month ago)
Hi!
Do you guys know any user behaviour tracking tools that works well with Aragon applications ?
Because apps inside the Aragon client are sandboxed, there are problems when you try to use tools as hotjar which ask you to add a tracking code to the html.
Sorry if I'm posting this in the wrong channel.

May 25, 2020 at 6:51pm
Good question. So far, we have not had too much interest in attaching tracking scripts to individual apps.
Does including the tracking code to the html not load? In general, these scripts work by being loaded and sending network requests back to the server, which should all still work in the sandbox.
Edited
  • reply
  • like

May 28, 2020 at 2:23pm
Apparently not. Hotjar gives you a tracking code that you need to paste into the <head> of the main html. They ask you to enter the url of your app to verify the tracking code. If its working a confirmation badge will pop up I'm getting this message in the console, I dont know if it helps:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://vars.hotjar.com') does not match the recipient window's origin ('null').
This is the tracking code:
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:1832140,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,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
Edited
  • reply
  • like
Ah yes, this must be an issue with our sandboxing and hotjar.
like-fill
1
  • reply
  • like
We also can't provide a URL with the app because we set a null origin to isolate the app frontend.
  • reply
  • like
Oh I see. I guess there is no easy solution for this. Thank you for your reply though
Edited
  • reply
  • like