Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7568637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:58:32+00:00 2026-05-30T14:58:32+00:00

I am trying to track a redirect page with google analytics: I have a

  • 0

I am trying to track a redirect page with google analytics:
I have a page called redirect.php; when I visit an url like redirect.php?c=12345678 , a php function does a query on a sql lookup table to decode the code 12345678 with a previously inserted url, then does a 301 redirect.

(I’m doing a 301 redirect to avoid duplicate content.)
I wish to track every single visit to redirect.php with analytics, but I can’t.

For example:

redirect.php?c=87654321 redirects to story.php.

Obviously in Analytics I can’t find the redirect.php page. the story.php referer is organic/google so I can’t rely on the referer.

Is it possible to track every redirect in some ways?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:58:33+00:00Added an answer on May 30, 2026 at 2:58 pm

    GA works in the browser. Whenever the user visits a page with the GA script – a request from the user to google is sent notifying about the visit.
    Since you are making a 301 header redirect – no GA script is loaded and therefore google doesn’t know the user has been on that page.

    Options you have

    • Switch the redirect from 301 header to a page with meta redirect and the GA code
    • Switch to another analytics system such as Piwik and add data to it manually on the redirect page
    • Implement your own counter inside the redirect script, separated from GA

    Of course you could merge the options and have, say a page with meta redirect and the GA code, which redirects to redirect.php script, which in turn redirects with a 301 header, but this is not the best solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're trying to track down some .Net assembly dependency problems. On Windows XP, does
I'm trying to track down an issue in our MFC code that looks like
I have an old website that URLs were like /page.aspx?sch=XXXX&prg=YYYY . I want to
I'm trying to track an event in my app using Yahoo Web Analytics. The
I am trying to track the url that refered my website. One way is
I have a website mywebsite.com and I would like to do a 301 redirect
I'm trying to get the browser to redirect whenever the user types in /index.php
Trying to track down a LNK2019 Unresolved External Symbol error on a function that
I am trying to track the last link_to a user clicked on. I have
Trying to track down this error I get when I have NSZombieEnabled . I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.