온라인 마케팅 정보 수집 -- 404에러 활용편

1.목적

온라인 배너광고의 효과에 대한 - 혹은 광고 업체의 자료만으로 부족한 경우 - 실측 데이터를 얻기 위한 방법.

기본적으로 웹로그를 전문적으로 분석하는 툴 webtrends 도 있지만 일반적으로 iis로그는 무지막지하게 쌓아 놓고 있기 때문에 비용대비 효과가 그다지 좋지 못함.

2.구현방법

1.link.site.com 사이트를 만든다.
2.redirect.htm(뒷장 코드 참고) 파일을 넣고, 404 오류에 매핑시켜 놓는다.
3.http://secure.site.com/register.aspx에 대한 배너 링크를 아래 예제처럼 걸어 놓는다.
4.예) http://link.site.com/naver001__secure.site.com/regiser.aspx
5.link.site.com의 (깨끗한) 로그를 파일 혹은 DB로 쌓아 분석한다. à PV및 UV와 같은 정보를 얻음.
6.“linkfrom” cookie값을 해당 페이지에서 적절히 활용한다. à “create account “페이지에서 계정 생성시 같이 저장하면 CPA 상관 정보를 얻을 수 있고, 결제 페이지에 넣으면 cps 정보를 얻을 수 있을 것임.

redirect.htm동작
위 예제의 link 페이지는 link.site.com 사이트에 존재하지 않기 때문에, 404오류에 의해서 redirect.htm파일을 호출한다.
redirect.htm파일은 딜리미터 “__” 의 앞부분은 잘라버리고, 뒷부분의 url로 redirect시킨다. 하지만 iis에서는 방문 로그를 고스란히 보관하게 된다.
즉, link.site.com/__ 형태로 저장되어 어디에서 어디로 유입되는지 파악할 수 있다.
동시에 최초 사이트 방문정보를 linkfrom의 이름으로 cookie에 보관하여, 계정생성이나 충전 페이지에서 이 값을 얻어 쓸 수 있다.
link.site.com의 사이트에는 redirect.htm 만 넣어, 순결한 iis log를 얻는 센스가 필요하다 하겠다.

3. 구현코드



<****** language="java******">

function writeCookie(url) {
try {
var del = "://link.site.com/";
url = url.substr(url.indexOf(del) + del.length, url.length - url.indexOf(del) - del.length);
document.cookie = "linkfrom=" + escape(url) + ";domain=site.com;path=/";
} catch(e) {}
}
function readCookie() {
try {
var url = "linkfrom=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(url) == 0) return c.substring(url.length,c.length);
}
} catch(e) {}
return null;
}

function redirect(url) {
try {
var del = "__";
var http = /__/g
window.location = url.substr(url.indexOf(del), url.length - url.indexOf(del)).replace(http, "http://");
} catch(e) { window.location = "http://www.site.com/error/notfound.htm"; }
}

if(readCookie() == null){
writeCookie(window.location.href); //최초 방문 정보만 보관하기 위해 null일 경우만
}
redirect(window.location.href);


다운로드
의견 0 신규등록      목록