verification.tmpl 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. drift.config({
  39. locale: '{{.Lang}}',
  40. messages: {
  41. welcomeMessage: 'Hey {{.LoggedUser.FullName}}!\nHelp, feedback, or bugs? Talk to us 🌞',
  42. awayMessage: "Hey, we're not here right now, but leave a message.",
  43. emailCaptureMessage: "Leave your email so we can get back to you.",
  44. thankYouMessage: "Thanks we'll follow up soon."
  45. },
  46. enableWelcomeMessage: false,
  47. backgroundColor: {{.Owner.ThemeColor}},
  48. cookieDomain: '.gitote.in',
  49. })
  50. {{end}}
  51. drift.reset();
  52. </script>