Capturing HTTP referrer in GA when a 301 is stripping the source parameters
-
Good day,
To make a long story into a short one - have you ever had any experience or encounter where you've needed GA to capture the HTTP referrer of your traffic before a 301 redirect script triggers (and thus strips the original source of traffic)?
I am working with a multitude of sites where the TLD redirects to a language directory, and because many of the referring sites and sources of traffic come into the TLD and then hit a 301, the referring source is then lost and most of this then shows as Direct traffic to the language directory (the effective 'home page').in GA.
Would sincerely appreciate any inputs you might have about how to effectively capture these sources as a workaround. I'm probably in need of a smart analytical fix, a clever tagging method or some development amendment that is unfamiliar to me. For the sake of this discussion, building the TLD up to an existing page is not a viable or feasible fix in this instance.
Thank you!
-
Hi!
Are you using clientside or serverside redirects? Since you talk about 301, I assume you use serverside redirects. I think if the rewrite rule is setup correct, then it should preserve the referrer info. But if this is added as e.g. utm_source parameters to the URL, then perhaps you can experiment with the flags set for the redirect rule?
Assuming you are working with an Apache server: Looking at https://httpd.apache.org/docs/current/rewrite/flags.html#flag_qsa, it looks as if parameters can be kept/appended to the target URL. Else, the setting [L,R=301] should probably work OK with regards to keeping the referrer.
Hope this helps
Best regards,
Anders
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
I have followed all the steps in google speed ranking on how to increase my website http://briefwatch.com/ speed but no good result
My website http://briefwatch.com/ has a very low-speed score on google page speed and I followed all the steps given to me still my website speed doesn't increase
Local Website Optimization | | Briefwatch0 -
301 or 302 Redirects with locale URLs?
Hi Mozers, I have a bit of a tricky question I need some help answering. My agency are building a brand new website for a client of ours which means changing the domain name (yay...). So! I have my 301's all ready to go for the UK locale, however, the issue I have is that the site will also eventually have French, German and Spanish locales - but these won't be ready to go until later this year. We will be launching in just English for September. The current site already has the French and German locales on it as well. Just to make sure I'm being clear, the site will be www.example.com for launch, but by lets say November, we will also have a www.example.com/fr/ and www.example.com/de/ site launched too. So what do I do with the locale URLs? As I said above, the exisitng site already has the French and German locales on it, so I don't particularly want to redirect the /fr/ and /de/ URLs to the English homepage, as I will want to redirect them to the new URLs in November, and redirecting more than once is bad for SEO right? Any ideas? Would 302s maybe be the best suggestion? Thanks! Virginia
Local Website Optimization | | Virginia-Girtz1 -
Moving from html to wordpress site - 301's
Hello, I recently took control of my website from a web designer. I have been reading as much as I can regards SEO etc to make long term improvements to my site. The site was a basic 4 page website for a local cleaning company. Consisting of a homepage, services page, testimonial and contact page. The site performed reasonably given it's lack of detail or SEO but probably only because the level of competition isn't great. I am in the process of rebuilding the site in wordpress and with SEO in mind I intend to have more than 1 page regards services. I have 301'd my services.html page to my number 1 keyword term to gain any little link juice that is available. Now to my questions... Should I be doing this with the other pages? Is it worth 301'ing my contact us page? Is there anything to be gained by doing so? Again should I 301 the index.html to the new homepage? Been reading about this and the issues relating to loops etc but cannot find a definite answer regards the need? Last scenario - lets say my testimonials.html page has some link juice would it be beneficial to 301 that to 1 of my new service pages to give that a kick start as opposed to making a less important page like another testimonials page more powerful? Hope this makes sense, I am a beginner just thinking out loud. Thanks
Local Website Optimization | | sfrediktru80 -
Best Sources for Advertising Commercial Real Estate?
After spending over $50,000 and 3 years on web site development and SEO I realized that advertising on such commercial real estate sites as Loopnet and Cityfeet were more cost effective for developing leads for identifying businesses seeking commercial space in New York City. My firm is a tenant rep brokerage assisting tenants in the acquisition of office, showroom and commercial lofts space in Manhattan. When my firmswitched to Loopnet I was astounded that this site generated leads at a lower cost and a greater quantity than my private branded website (www.metro-manhattan.com). I would have thought that a private branded site would be more effective. Now 2 years later I am having issued with Loopnet and can no longer advertise there. Does any one have any suggestions concerning business websites where we can advertise commercial tenant representation services in Manhattan? Sites like www.officespace.com look like they have potential. LinkedIn sounds like a good demographic but I am concerned that advertising would only generate requests for links rather than generating bona fide leads. Thoughts??? Thanks, Alan
Local Website Optimization | | Kingalan10 -
New Domain Link Building Order - When to 301 Redirect?
Hello Everyone - I am trying to lock down the best Local SEO and link acquisition order for 1 1/2 month old Domain. The Domain is clean - No History - Registered in WMT's on January 20th It's a service franchise website consolidating about 5 independent locations into a single branded site. The each location now has it's own location page on the new site: www.examplesite.com/Location-1 I'm considering the best timing to add 301's to the current Locations individual websites, to the locations pages on the new site.Some of which are currently ranked well (position 2) for one of their primary commercial terms. www.individuallocationsite.com ---> www.examplesite.com/Location-1 I don't want to lose that ranking, but will need to do the 301 redirect at some point. Should I - A.) Complete all of the Citation Work, Natural Profiles, Blog Posts...etc FIRST and let the new website age before 301'ing the locations? Giving it the best chance to have no interruption in those rankings? B:) 301 All the properties into the new website first and start all of the other Local SEO work second? C:) Something else? Thanks in Advance
Local Website Optimization | | CRO_first0 -
Multi Location business - Should I 301 redirect duplicate location pages or alternatively No Follow tag them ?
Hello All, I have a eCommerce site and we operate out of mulitple locations. We currently have individual location pages for these locations against each of our many categories. However on the flip slide , this create alot of duplicate content. All of our location pages whether unique or duplicated have a unique title Tag, H1, H2 tag , NAP and they all bring in the City Name . The content on the duplicated content also brings in the City name as well. We have been going through our categories and writing unique content for our most popular locations to help rank on local search. Currently I've been setting up 301 redirects for the locations in the categories with the duplicated content pointing back to the category page. I am wondering whether the increase in number of 301's will do more harm than having many duplicate location pages ?.. I am sure my site is affected by the panda algorithm penalty(on the duplicated content issues) as a couple of years ago , this didn't matter and we ranked top 3 for pretty much for every location but now we are ranking between 8 - 20th depending on keyword. An Alternative I thought, may be to instead of 301 those locations pages with duplicate content, is to put No Follow tags on them instead ?... What do you think ?. It's not economically viable to write unique content for every location on every category and these would not only take years but would cost us far to much money. Our Site is currently approx 10,000 pages Any thoughts on this greatly appreciated ? thanks Pete
Local Website Optimization | | PeteC120 -
Where should I 301 redirect my current domain to given this situation?
My company currently owns three apartment complexes. They are within blocks of each other. Only one of them has a website (believe it or not). The one that has the website ranks fairly well, but only because it has been around for a long time. There have not been any intentional SEO efforts. I have stumbled across a wonderful, keyword rich & location specific, domain name but I have a question. Here's the scenario: We have: Apartment Complex 1 - www.apartmentcomplex1.com (longstanding website) Apartment Complex 2 - No website. Apartment Complex 3 - No website. We are considering buying the domain: www.KeywordRichDomain.com. The new URL structure would be: www.KeywordRichDomain.com/apartment-complex-1 www.KeywordRichDomain.com/apartment-complex-2 www.KeywordRichDomain.com/apartment-complex-3 Should I 301 redirect www.apartmentcomplex1.com to the new root domain or should I redirect it to the appropriate sub-folder of the new domain? Putting myself in the user's shoes, if I were expecting to go to the apartmentcomplex1.com domain, I would want to land on the sub-folder because it's relevant to what I was looking for. However, I don't think people will directly type in the old URL. I think people will be searching for apartments in the area and I want all three of our complexes to show up. By redirecting the good domain to this new root domain, it should help us start out life pretty well in the SERPS. (my assumption at least). Thoughts?
Local Website Optimization | | MeasureEverything0 -
Can to many 301 redirects damage my Ecommerce Site - SEO Issue
Hello All, I have an eCommerce website doing online hire. We operate from a large number of locations (100 approx) and my 100 or so categories have individual locations pages against them example - Carpet Cleaners (category) www.mysite/hire-carpetcleaners
Local Website Optimization | | PeteC12
carpet cleaner hire Manchester www.mysite/hire-carpetcleaners/Manchester
carpet cleaner hire london
carpet cleaner hire Liverpool patio heater (category)
patio heater hire Manchester
patio heater hire London
patio heater hire Liverpool And so on..... I have unique content for some of these pages but given that my site had 40,000 odd urls, I do have a large amount of thin/duplicate content and it's financially not possible to get unique
content written for every single page for all my locations and categories. Historically, I used to rank very well for these location pages although this year, things have dropped off and recently , I was hit with the Panda 4.0 update which i understand targets thin content. Therefore what I am int he process of doing is reducing the number of locations I want to rank for and have pages for thus allowing me to achieve both a higher percentage of unique content over duplicate/thin content on the whole site and only concerntrate on a handful of locations which I can realistically get unique content written for. My questions are as follows. By reducing the number of locations, my website will currently 301 redirect these location page i have been dropping back to it's parent category.
e.g carpet cleaner hire Liverpool page - Will redirect back to the parent Carpet cleaner hire Page. Given that I have nearly 100 categories to do , this will mean site will generate thousands of 301 redirects when I reduce down to a handful of locations per category. The alternative Is that I can 404 those pages ?... What do yout think I should do ?.. Will it harm me by having so many 301's . It's essentially the same page with a location name in it redirecting back to the parent. Some of these do have unqiue content but most dont ?. My other question is - On a some of these categories with location pages, I currently rank very well for locally although there is no real traffic for these location based keywords (using keyword planner). Shall I bin them or keep them? Lastly , Once I have reduced the number of location pages , I will still have thin content until , I can get the unique content written for them. Should I remove these pages until that point of leave them as it is? It will take a few months
to get all the site with unique content. Once complete, I should be able to reduce my site down from 40,000 odd pages to say 5,000 pages Any advice would be greatly appreciated thanks
Pete0