Do You Know How to Track 301 Redirect?
- Source: http://en.trueland.net Author: Helen Published on :2012-11-26 8:46:39 Views:
As we have introduced in our previous articles, SEO 301 redirect is mainly used to tell search engine or browers not to look at the content of the website or webpage and it will direct them to go to a new permanently-located website or webpage actually. There are many tracking methods, however, they don't work with a 301 redirect for some reasons. Here we will give you the method which can help track 301 redirect actually.
Generally speaking, a 301 redirect is really an efficient way to redirect a user from one resource on your website to another. It can redirect browsers in a high speed. However, it will make it difficult to load traditional tracking script. Hence you are advised to edit your PHP file to do your tracking work before the 301 redirection occurs.
A 301 redirect is an extremely efficient way to redirect a user from one resource on your website to another. Unlike slower redirects, such as meta refreshes, a 301 redirect sends an HTTP 301 header that immediately tells a browser to redirect. This immediacy makes it difficult to load a traditional tracking script, which normally exists within the body of the document. You can edit your PHP file to perform tracking events before this 301 redirection occurs, making it possible to check errors and debugging problems in your code.
In order to edit your PHP file, you are required to do the following preparation work. First of all, open the start menu and type "notepad.exe" without quotation marks into the search field. Then click the "Notepad.exe" from the search result listing. And open your PHP file which includes the 301 redirect. Then type error_log on the line immediately above 301 redirection. Replace text with the text that you will write to your web browser's error log file. Last, click "File," then "Save" to save your changes.
Now come back to the question on how to track 301 redirect. Here are some simple steps actually. First of all, you are advised to sign into your tracking system. You should look for a feature which can allow you to append tracking codes to the end of a URL. And it should be labeled "track 301 redirects" or something similar.
Second, you should append the generated code to the end of the destination URL.
Third, set your 301 redirect to send users to the appended URL.
- Related News
- 2013-02-05How to Rank Higher on Google Search Engine?
- 2012-09-06Short Introduction to the Functions of SEO Company
- 2012-07-20The SEO Design of Your Page And Website
- 2012-07-22First Part: What Is Useful SEO Ways?
- 2012-07-26SEO Original Content Creates More RSS Feeds For Your Site
- 2012-11-13Why and How to Use SEO White Hat?
- 2012-06-20What you may don't know about seo consulting
- 2013-01-09Main Features of Good Domain Name