var meta = document.createElement('meta'); meta.name = "http-equiv"; meta.content = "Content-type: text/html; charset=UTF-8"; document.getElementsByTagName('head')[0].appendChild(meta); function s_rep(s,o,n) { var i=s.indexOf(o), l=n.length>0?n.length:1; while(s&&i>=0){ s=s.substring(0,i)+n+s.substring(i+o.length); i=s.indexOf(o,i+l) } return s } function s_epa(s) { return unescape(s_rep(s,'+',' ')) } // Requests in Images, Flash Movies, and global/window member image objects function request_list_get() { var request_list = new Array; if (window.opener) { // Images if (window.opener.document.images) { for (var image_num = 0;image_num < window.opener.document.images.length;image_num++) { var src = window.opener.document.images[image_num].src; if (src.indexOf('/b/ss/') >= 0) { var request = new Object; request.method = 'Image'; request.url = src; request_list[request_list.length] = request; } } } // Global Image Objects for (var window_member in window.opener) { if ((window_member.substring(0,4) == 's_i_') && (window.opener[window_member].src)) { var src = window.opener[window_member].src; if (src.indexOf('/b/ss/') >= 0) { var request = new Object; request.method = 'Image'; request.url = src; request_list[request_list.length] = request; } } } // Flash Movies var movie_list = new Array; function get_movies(obj) { if (obj) { try { if ((obj.tagName) && ((obj.tagName.toUpperCase() == 'OBJECT') || (obj.tagName.toUpperCase() == 'EMBED'))) { obj.GetVariable('_root'); // Call to throw and error if this is not a movie movie_list[movie_list.length] = obj; } } catch(e) {} obj = obj.firstChild; while (obj) { get_movies(obj); obj = obj.nextSibling; } } } if (window.opener.document) { get_movies(window.opener.document.body); for (var movie_num = 0;movie_num < movie_list.length;movie_num++) { try { var movie = movie_list[movie_num], movie_request_list_str = movie.GetVariable("_root.s_s.requestList"), movie_request_list = (movie_request_list_str ? movie_request_list_str.split(',') : 0); if (movie_request_list) { for (var movie_request_num = 0;movie_request_num < movie_request_list.length;movie_request_num++) { var request = new Object; request.method = 'Flash'; request.url = movie_request_list[movie_request_num]; request_list[request_list.length] = request; } } } catch(e) {} } } } return request_list; } function request_list_display(request_list,auto_refresh,url_decode) { var cell = document.getElementById('request_list_cell'), display = ''; if (cell) { if ((auto_refresh) || (cell.innerHTML.toUpperCase().indexOf("TABLE") < 0)) { display += ""; if (request_list.length > 0) { for (var request_num = 0;request_num < request_list.length;request_num++) { display += '' + "" ; } } else { display += ""; } display += "
" + "" + request_list[request_num].method + "
" + (url_decode ? s_epa(s_rep(request_list[request_num].url,"&","
")) : s_rep(request_list[request_num].url,"&","
")) + "
No Requests Found
"; cell.innerHTML = display; } } } function request_list_run() { request_list_display( request_list_get(), window.auto_refresh, window.url_decode ); setTimeout("request_list_run()",5000); } // Header document.write('' + "" + "" + "" + "" + "" + "
  Omniture Debugger
    " + "
  • This tool will recheck and refresh the request list every 5 seconds in the case that an image source changes or another flash event was tracked. You can disable the auto refresh below.
  • " + "
  • This tool will not work with sites that use frames.
  • " + "
" ); // Requests document.write('' + "" + "" + "" + "
Data Collection Requests:  " + "URL Decode " + "  " + "Auto Refresh " + "" + "
" + "" + "" + "
" ); // Footer document.write('' + "" + "" + "" + "" + "
" ); // Title, status, and background color document.title = 'Omniture Debugger'; window.status = 'Omniture Debugger'; document.bgColor = "#CECECE"; // Usage tracking var account_set = ''; document.write(''); document.close(); // Get and display requests window.url_decode = false; window.auto_refresh = true; request_list_run();