|
|
@@ -0,0 +1,51 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="ko"
|
|
|
+ xmlns:th="http://www.thymeleaf.org">
|
|
|
+<!--
|
|
|
+ *******************************************************************************
|
|
|
+ * @source : MktScriptsWeb.html
|
|
|
+ * @desc : 마케팅 스크립트
|
|
|
+ *============================================================================
|
|
|
+ * STYLE24
|
|
|
+ * Copyright(C) 2020 TSIT, All rights reserved.
|
|
|
+ *============================================================================
|
|
|
+ * VER DATE AUTHOR DESCRIPTION
|
|
|
+ * === =========== ========== =============================================
|
|
|
+ * 1.0 2021.03.18 gagamel 최초 작성
|
|
|
+ *******************************************************************************
|
|
|
+ -->
|
|
|
+<th:block th:fragment="mscripts">
|
|
|
+
|
|
|
+<script th:inline="javascript">
|
|
|
+/*<![CDATA[*/
|
|
|
+ String.prototype.hashCode = function() {
|
|
|
+ var hash = 0;
|
|
|
+ for (var i = 0; i < this.length; i++) {
|
|
|
+ var character = this.charCodeAt(i);
|
|
|
+ hash = ((hash<<5) - hash) + character;
|
|
|
+ hash = hash & hash; // Convert to 32bit integer
|
|
|
+ }
|
|
|
+ return hash;
|
|
|
+ }
|
|
|
+
|
|
|
+ var gCustId = gagajf.isNull([[${sessionInfo.custId}]]) ? '' : [[${sessionInfo.custId}]];
|
|
|
+ var hCustId = gCustId ? gCustId.hashCode() : '';
|
|
|
+ console.log('hCustId: ' + hCustId);
|
|
|
+
|
|
|
+ /* Eiengine Script */
|
|
|
+ window._eglqueue = window._eglqueue || [];
|
|
|
+ _eglqueue.push(['setVar', 'cuid', '1252aed4-78dc-46e8-b784-94ac42e86dd4']);
|
|
|
+ _eglqueue.push(['setVar', 'userId', hCustId]);
|
|
|
+ _eglqueue.push(['track', 'visit']);
|
|
|
+ (function (s, x) {
|
|
|
+ s = document.createElement('script'); s.type = 'text/javascript';
|
|
|
+ s.async = true; s.defer = true; s.src = (('https:' == document.location.protocol) ? 'https' : 'http') + '://logger.eigene.io/js/logger.min.js';
|
|
|
+ x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
|
|
|
+ })();
|
|
|
+ /* \\Eiengine Script */
|
|
|
+/*]]>*/
|
|
|
+</script>
|
|
|
+
|
|
|
+</th:block>
|
|
|
+
|
|
|
+</html>
|