Redirects and Google Analytics

Discussion in 'Google Analytics' started by lopes, Jun 1, 2011.

  1. #1
    I have a page that only allows visitors coming from inside the same site to see it. If they are referred from somewhere else, they are redirect to my main site's page.

    I've placed this PHP command to perform it:

    if (strpos($_SERVER[HTTP_REFERER],"site.com")==0)
    {
    header("Location: http://www.site.com");
    exit();
    }


    Do you think this will affect Google Analytics reports?
     
    lopes, Jun 1, 2011 IP
  2. Aurele

    Aurele Member

    Messages:
    140
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #2
    I'm not sure. On topic tho the referer check is not reliable, I would use another technique to protect my content if I were you.
     
    Aurele, Jun 1, 2011 IP
  3. marylandlawoffice

    marylandlawoffice Member

    Messages:
    395
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #3
    yes this will affect Google Analytic reports
     
    marylandlawoffice, Jun 2, 2011 IP
  4. gauravsharma.seo

    gauravsharma.seo Member

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    yes..i can affect Google analytic reports, but in a quite way..
     
    gauravsharma.seo, Jun 3, 2011 IP
  5. unknownpray

    unknownpray Active Member

    Messages:
    3,831
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    70
    #5
    Not sure what effect it will have on the browser though probably it is better to add the respective settings and by making a backup of your current data. Then after a week you can compare the difference.
     
    unknownpray, Aug 13, 2011 IP