Commit 28f3d9f8 by Nilu

integrating heap analysis and hot jar services

parent 48c47c35
...@@ -2,6 +2,7 @@ package performa.utils; ...@@ -2,6 +2,7 @@ package performa.utils;
import java.util.*; import java.util.*;
import javax.activation.DataSource; import javax.activation.DataSource;
import oneit.appservices.config.ConfigMgr;
import oneit.email.ConfigurableArticleTemplateEmailer; import oneit.email.ConfigurableArticleTemplateEmailer;
import oneit.email.ConfigurableEmailerException; import oneit.email.ConfigurableEmailerException;
import oneit.logging.LogLevel; import oneit.logging.LogLevel;
...@@ -41,7 +42,8 @@ public class Utils ...@@ -41,7 +42,8 @@ public class Utils
public static final String LEVEL_SALES = "Sales"; public static final String LEVEL_SALES = "Sales";
public static final String LEVEL_MANAGEMENT = "Management"; public static final String LEVEL_MANAGEMENT = "Management";
public static final String LEVEL_EXECUTIVE = "Executive"; public static final String LEVEL_EXECUTIVE = "Executive";
public static final String HEAP_ANALYSIS_ID = ConfigMgr.getKeyfileString("heap.analysis.id", "3411110378");
public static Role getRole(String role, ObjectTransaction transaction) public static Role getRole(String role, ObjectTransaction transaction)
{ {
return Role.SearchByNAME().byName(role).search(transaction); return Role.SearchByNAME().byName(role).search(transaction);
......
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
} }
%> %>
</div> </div>
</div> </div
<%@ include file="/hotjar.jsp" %>
<%@ include file="/heapAnalysis.jsp" %>
</body> </body>
</html> </html>
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
<li><a href="#">Privacy Policy</a></li> <li><a href="#">Privacy Policy</a></li>
</ul> </ul>
</div> </div>
</footer> </footer
<%@ include file="/hotjar.jsp" %>
<%@ include file="/heapAnalysis.jsp" %>
</body> </body>
</html> </html>
Add "heap.analysis.id" to keyfile properties.
\ No newline at end of file
<script>
var heapAnalysisID = "<%= Utils.HEAP_ANALYSIS_ID %>"
</script>
<oneit:script>
<oneit:script src="/scripts/heapAnalysis.js"/>
</oneit:script>
\ No newline at end of file
<oneit:script>
<oneit:script src="/scripts/hotjar.js"/>
</oneit:script>
\ No newline at end of file
window.heap = window.heap || [], heap.load = function(e, t){window.heap.appid = e, window.heap.config = t = t || {}; var r = t.forceSSL || "https:" === document.location.protocol, a = document.createElement("script"); a.type = "text/javascript", a.async = !0, a.src = (r?"https:":"http:") + "//cdn.heapanalytics.com/js/heap-" + e + ".js"; var n = document.getElementsByTagName("script")[0]; n.parentNode.insertBefore(a, n); for (var o = function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments, 0)))}}, p = ["addEventProperties", "addUserProperties", "clearEventProperties", "identify", "removeEventProperty", "setEventProperties", "track", "unsetEventProperty"], c = 0; c < p.length; c++)heap[p[c]] = o(p[c])};
heap.load(heapAnalysisID);
\ No newline at end of file
//Hotjar Tracking Code for www.talentology.com
(function (h, o, t, j, a, r) {
h.hj = h.hj || function () {
(h.hj.q = h.hj.q || []).push(arguments)
};
h._hjSettings = {hjid: 598700, hjsv: 5};
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, '//static.hotjar.com/c/hotjar-', '.js?sv=');
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment