Sfoglia il codice sorgente

크리테오 스크립트 삽입

gagamel 4 anni fa
parent
commit
9ac4a1c59f

+ 4 - 0
src/main/webapp/WEB-INF/views/mob/common/fragments/HeadMob.html

@@ -128,6 +128,10 @@
 		})();
 		/* \\Eiengine Script (Visit) */
 	</script>
+	
+	<!-- Criteo 로더 파일 (Head에 위치) -->
+	<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
+	<!--// Criteo 로더 파일 (Head에 위치) -->
 </head>
 	
 </html>

+ 12 - 0
src/main/webapp/WEB-INF/views/mob/display/MallMainFormMob.html

@@ -1021,6 +1021,18 @@
 
 	</script>
 
+	<!-- Criteo 홈페이지 태그 -->
+	<script type="text/javascript">
+		var criteoEmail = gEmail ? hex_sha512(gEmail).toString().hashCode() : '';
+		window.criteo_q = window.criteo_q || [];
+		var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
+		window.criteo_q.push(
+			{ event: "setAccount", account: 6762}, // 이 라인은 업데이트하면 안됩니다
+			{ event: "setEmail", email: criteoEmail }, // 빈 문자일 수 있습니다 
+			{ event: "setSiteType", type: deviceType},
+			{ event: "viewHome"});
+	</script>
+	<!--// Criteo 홈페이지 태그 -->
 </th:block>
 
 </body>

+ 5 - 0
src/main/webapp/WEB-INF/views/web/common/fragments/HeadWeb.html

@@ -87,6 +87,7 @@
 		gtag('js', new Date());
 		gtag('config', 'AW-865781638');
 	</script>
+	<!--// Global site tag (gtag.js) - Google Analytics -->
 	
 	<th:block th:if="${sessionInfo != null}">
 		<script th:inline="javascript">
@@ -177,6 +178,10 @@
 		}
 		// 로그인 성공 시 - 끝
 	</script>
+	
+	<!-- Criteo 로더 파일 (Head에 위치) -->
+	<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
+	<!--// Criteo 로더 파일 (Head에 위치) -->
 </head>
 
 </html>

+ 12 - 0
src/main/webapp/WEB-INF/views/web/display/MallMainFormWeb.html

@@ -1263,6 +1263,18 @@ $(document).ready(function() {
 /*]]>*/
 </script>
 
+	<!-- Criteo 홈페이지 태그 -->
+	<script type="text/javascript">
+		var criteoEmail = gEmail ? hex_sha512(gEmail).toString().hashCode() : '';
+		window.criteo_q = window.criteo_q || [];
+		var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
+		window.criteo_q.push(
+			{ event: "setAccount", account: 6762}, // 이 라인은 업데이트하면 안됩니다
+			{ event: "setEmail", email: criteoEmail }, // 빈 문자일 수 있습니다 
+			{ event: "setSiteType", type: deviceType},
+			{ event: "viewHome"});
+	</script>
+	<!--// Criteo 홈페이지 태그 -->
 </th:block>
 
 </body>