How to Track Redirect With Google Analytics?

Discussion in 'Black Hat SEO' started by TimeToGo, Nov 25, 2013.

  1. TimeToGo

    TimeToGo Regular Member

    Joined:
    Jun 15, 2013
    Messages:
    224
    Likes Received:
    247
    Is there a way to track 301 redirect with google analytics?
    Most solutions online are for affiliate click on the main website.

    This won't work for me because I do email marketing and send leads
    directly to the redirect page:
    http://mysite.com/product

    I'm currently using this PHP code for redirection:
    PHP:
    <?php 
    header
    ('HTTP/1.1 301 Moved Permanently');
    header('Location: http://affiliatesite.com');
    exit();
    ?>
     
  2. Angel A

    Angel A Junior Member Premium Member

    Joined:
    May 15, 2013
    Messages:
    117
    Likes Received:
    17
    Occupation:
    SEO / SMM /SMO /Marketing
    Location:
    Europe