hotjar 0.0.3

Dart js
Flutter web

Javascript interop for Hotjar

hotjar #

Javascript interop for Hotjar

Usage #

Hotjar integrated using Tag Manager #

import "package:hotjar/hotjar.dart";

main() {
  hj("trigger", "my-poll");
  hj("tagRecording",  ["tag1", "tag2"]);

  // or

  trigger("my-poll");
  tagRecording(["tag1", "tag2"]);
}

Hotjar manual install #

import "package:hotjar/hotjar.dart";

main() async {
  loadHotjar("SITE_ID");

  hj("trigger", "my-poll");
  hj("tagRecording",  ["tag1", "tag2"]);

  // or

  trigger("my-poll");
  tagRecording(["tag1", "tag2"]);
}
2
likes
90
pub points
60%
popularity

Publisher

lefty.io

Javascript interop for Hotjar

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dart_browser_loader, js

More

Packages that depend on hotjar