1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question on a piece of scripting.

Discussion in 'Black Hat SEO' started by smileplease, Apr 13, 2009.

  1. smileplease

    smileplease Regular Member

    Joined:
    Sep 29, 2008
    Messages:
    242
    Likes Received:
    159
    Found this on a competitor's site

    Code:
    <script>
    function utmx_section(){}function utmx(){}
    (function(){var k='3577246329',d=document,l=d.location,c=d.cookie;function f(n){
    if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.indexOf(';',i);return c.substring(i+n.
    length+1,j<0?c.length:j)}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;
    d.write('<sc'+'ript src="'+
    'http'+(l.protocol=='https:'?'s://ssl':'://www')+'.google-analytics.com'
    +'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='
    +new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
    '" type="text/javascript" charset="utf-8"></sc'+'ript>')})();
    </script><script>utmx("url",'A/B');</script>
    
    Is that a google adwords script?

    Code:
    <script type="text/javascript">
    if(typeof(_gat)!='object')document.write('<sc'+'ript src="http'+
    (document.location.protocol=='https:'?'s://ssl':'://www')+
    '.google-analytics.com/ga.js"></sc'+'ript>')</script>
    <script type="text/javascript">
    try {
    var pageTracker=_gat._getTracker("UA-498192-5");
    pageTracker._trackPageview("/3577246329/test");
    }catch(err){}</script>
    
    That too?

    Code:
    <img src="http://media.fastclick.net/w/tre?ad_id=20247;evt=12939;cat1=14170;cat2=14171" width="1" height="1" border="0">
    <img src="https://secure.fastclick.net/w/tre?ad_id=20247;evt=12939;cat1=14170;cat2=14171" width="1" height="1" border="0">
    
    These would be tracking pixels right?
     
    Last edited: Apr 13, 2009
  2. HaRRo

    HaRRo Elite Member

    Joined:
    Oct 29, 2005
    Messages:
    2,676
    Likes Received:
    13,447
    Occupation:
    Self Employed
    Location:
    Miami, FL
    Yes Google analytics. And pixel tracking. :D
     
    • Thanks Thanks x 1
  3. smileplease

    smileplease Regular Member

    Joined:
    Sep 29, 2008
    Messages:
    242
    Likes Received:
    159
    tyvm.

    I also found a really really great piece of code the sneaky bastard was using, that almost convinced me to click the BUY NOW button.