Przeglądaj źródła

코마스 광고스크립트 오류 수정

gagamel 4 lat temu
rodzic
commit
d23c2eea66

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

@@ -182,6 +182,16 @@
 		};
 		var cosemRequest = new cosem_Request();
 		cosemRequest.tracking();
+		
+		function cosemConvert(rn, amt, pc, pa, pp, pg, etc) {
+			var cosemProtocol = ( location.protocol=="https:" )? "https:" :"http:";
+			var image = new Image();
+			var accountCode = "951";
+			var imageURL = cosemProtocol + "//" + "tracking.icomas.co.kr";
+			imageURL += "/Script/action3.php" + "?aid=" + accountCode + "&rn=" + encodeURI(rn) ;
+			imageURL += "&amt=" + amt + "&pc=" + encodeURI(pc) + "&pa=" + pa + "&pp=" + pp + "&pg=" + encodeURI(pg) + "&etc=" + encodeURI(etc);
+			image.src = imageURL;
+		}
 	</script>
 	<!--// Cosem Log Gathering Script V.2.0 -->
 </head>

+ 7 - 2
src/main/webapp/WEB-INF/views/mob/customer/JoinCompleteFormMob.html

@@ -186,10 +186,15 @@ if (window.wcs) {
 </script>
 <!--// Facebook Pixel Event Code -->
 
+<!-- Cosem Log Gathering Script V.2.0 -->
 <script type="text/javascript">
-	// 구매번호, 전체금액(숫자), 상품코드(상품명), 상품수량(숫자), 상품단가(숫자), 카테고리, 기타
-	cosemConvert("0", "0", "회원가입", "0", "0", "", "");
+	setTimeout(function() { 
+		//cosemConvert( "구매번호", "전체금액(숫자)", "상품코드(상품명)", "상품수량(숫자)", "상품단가(숫자)", "카테고리", "기타" );
+		cosemConvert("0", "0", "회원가입", "0", "0", "", "");
+		}, 10);
 </script>
+<!--// Cosem Log Gathering Script V.2.0 -->
+
 </th:block>
 </body>
 </html>

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

@@ -233,6 +233,16 @@
 		};
 		var cosemRequest = new cosem_Request();
 		cosemRequest.tracking();
+		
+		function cosemConvert(rn, amt, pc, pa, pp, pg, etc) {
+			var cosemProtocol = ( location.protocol=="https:" )? "https:" :"http:";
+			var image = new Image();
+			var accountCode = "951";
+			var imageURL = cosemProtocol + "//" + "tracking.icomas.co.kr";
+			imageURL += "/Script/action3.php" + "?aid=" + accountCode + "&rn=" + encodeURI(rn) ;
+			imageURL += "&amt=" + amt + "&pc=" + encodeURI(pc) + "&pa=" + pa + "&pp=" + pp + "&pg=" + encodeURI(pg) + "&etc=" + encodeURI(etc);
+			image.src = imageURL;
+		}
 	</script>
 	<!--// Cosem Log Gathering Script V.2.0 -->
 </head>

+ 6 - 2
src/main/webapp/WEB-INF/views/web/customer/JoinCompleteFormWeb.html

@@ -128,10 +128,14 @@ if (window.wcs) {
 </script>
 <!--// Facebook Pixel Event Code -->
 
+<!-- Cosem Log Gathering Script V.2.0 -->
 <script type="text/javascript">
-	// 구매번호, 전체금액(숫자), 상품코드(상품명), 상품수량(숫자), 상품단가(숫자), 카테고리, 기타
-	cosemConvert("0", "0", "회원가입", "0", "0", "", "");
+	setTimeout(function() { 
+		//cosemConvert( "구매번호", "전체금액(숫자)", "상품코드(상품명)", "상품수량(숫자)", "상품단가(숫자)", "카테고리", "기타" );
+		cosemConvert("0", "0", "회원가입", "0", "0", "", "");
+		}, 10);
 </script>
+<!--// Cosem Log Gathering Script V.2.0 -->
 
 </th:block>
 </body>