verification.tmpl 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!-- Google Analytics -->
  2. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-107259345-2"></script>
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. function gtag(){dataLayer.push(arguments);}
  6. gtag('js', new Date());
  7. gtag('config', 'UA-107259345-2');
  8. </script>
  9. <script>
  10. "use strict";
  11. !function() {
  12. var t = window.driftt = window.drift = window.driftt || [];
  13. if (!t.init) {
  14. if (t.invoked) return void (window.console && console.error && console.error("Drift snippet included twice."));
  15. t.invoked = !0, t.methods = [ "identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on" ],
  16. t.factory = function(e) {
  17. return function() {
  18. var n = Array.prototype.slice.call(arguments);
  19. return n.unshift(e), t.push(n), t;
  20. };
  21. }, t.methods.forEach(function(e) {
  22. t[e] = t.factory(e);
  23. }), t.load = function(t) {
  24. var e = 3e5, n = Math.ceil(new Date() / e) * e, o = document.createElement("script");
  25. o.type = "text/javascript", o.async = !0, o.crossorigin = "anonymous", o.src = "https://js.driftt.com/include/" + n + "/" + t + ".js";
  26. var i = document.getElementsByTagName("script")[0];
  27. i.parentNode.insertBefore(o, i);
  28. };
  29. }
  30. }();
  31. drift.SNIPPET_VERSION = '0.3.1';
  32. drift.load('7xn6zh55rcbx');
  33. {{if .LoggedUser}}
  34. drift.identify('{{.LoggedUser.Name}}', {
  35. nickname: '{{.LoggedUser.FullName}}',
  36. email: '{{.LoggedUser.Email}}'
  37. });
  38. {{end}}
  39. drift.config({
  40. {{if .LoggedUser}}
  41. messages: {
  42. welcomeMessage: 'Hey {{.LoggedUser.FullName}}!\nHelp, feedback, or bugs? Talk to us 🌞',
  43. },
  44. backgroundColor: {{.Owner.ThemeColor}},
  45. {{end}}
  46. enableWelcomeMessage: false,
  47. disableNewConversations: false,
  48. })
  49. drift.reset();
  50. </script>