Find all affiliate links in a custom CMS
-
I have a custom CMS. I offer a few affiliate products through my site. Now I need to update all my aff. links and I'm not sure how I can find all the pages (posts) on my site that have affiliate links. What's the best way to do that?
-
.htaccess processes requests received by your webserver. It doesn't process HTML sent to the client, so it can't affect those affiliate links.
-
Hey,
As Jane mentioned - .htaccess can't change the HTML content of your pages, so you can't replace all the links that would be seen by a user or a browser.
If the links are via a redirection page on your site then you can use .htaccess to redirect those requests elsewhere, so when a user clicks a link it takes them somewhere else instead, but only if those pages are on your site.
Make sense?
Good luck!
-Tom
-
Hi Vince,
.htaccess can't change the HTML of the webpage, but I am not sure if it can rewrite outbound clicks. I'll reach out to other other contributors to see if anyone has a shortcut way of updating these links. I am seeing it mentioned online that you can do this, but I would like some verification from the team.
Cheers,
Jane
-
Afraid I can't help you with that one. Sorry!
-
Thanks guys, that makes sense. I'm doing what you suggested now. Once I find all my pages with affiliate links, is it possible to use .htaccess so that it requites those links automatically? Basically, it should go to a specific page, find the link I define, and change it to a new one. Is that even possible with .htaccess?
-
I would agree with Andy. Screaming Frog SEO Spider is a good tool for this. Just check all the "In Links" from the external urls you need to find on your site.
-
Probably the best way to track down all the pages, would be to use Screaming Frog Spider. Put in the URL and leave it to go.
The free version crawls up to 500 pages with the paid version being unlimited.
-Andy
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
-
URL with affiliate ID won't stop outranking our homepage. Time for nuclear option?
We have affiliate links applied to our index URL - https://playon.co - which are not picked up as a duplicate URLs by Google. We've applied a canonical URL, but our homepage is a 301 redirect to a page with a language parameter. So what happens is: https://playon.co/ goes to https://playon.co/en Affiliate links such as https://playon.co/#/?affiliate_token=1390448caccb7d go to https://playon.co/en#/?affiliate_token=1390448caccb7d This gets picked up as rel="canonical" href="https://playon.co/en" which I assumed marked it as a non-canonical page. Nonetheless, we keep seeing this affiliate "page" ranking - even above our own homepage for some terms. Worse, the affiliate URL also contains old cached information of the page. I don't even see how these SERP results should exist, because the affiliate link just ends up at the homepage (https://playon.co/en) My questions: What can we do to remove these affiliate URL versions of our homepage from being ranked? Google doesn't see anything after the hash in the indexed affiliate URLs. If we were to no-index our index URL (https://playon.co/) to completely remove the affiliates links, would our canonical version (https://playon.co/en) assume the top listing, or will we have effectively nuked our entire site? Appreciate any help.
Affiliate Marketing | | jmoreland0 -
Does Canonical Tag passes link juice to the original URL?
We are using Canonical tags at almost all the pages of our eCommerce website. We have various sorting options like "High to Low", "Best Sellers", etc., due to this page URLs get change with some dynamic URL parameters. To avoid duplicity, we are using canonical tag on each page which point to the original url. Also, we are using IBM Coremetrics to track traffic and conversions, but to measure referral traffic in Coremetrics, we have to add tracking parameters in the URL. So, while link building we need to share URLs with Coremetrics tracking parameters in the URL, but the canonical of this page is pointing to the original URL. Suppose we have a Page that needs to be shared with Coremetrics tag: domain.com/category-name/?cm_mmc=Referral_-xyz--izUPF8VmRng--3 This Page has the canonical tag pointing to the original url: domain.com/category-name/ My question is if the URL: domain.com/category-name?cm_mmc=Referral_-xyz--izUPF8VmRng--3 got shared on other websites, will it pass link juice to the original URL: domain.com/category-name.
Affiliate Marketing | | Ramendra.Singh0 -
Setting up external link goals in GA
I have recently switched all my travel affiliate links to TripAdvisor using their javascript code that converts the natural links (direct links to TA URLs) to affiliate links. I have set up goal tracking in GA to try to put a monetary value on clicks through to these links (based on the known conversion rate to commissionable bookings) but GA is over-reporting the goals by a very large margin. I'm wondering what I've done wrong. The first screen shot below is of the goal settings I used in GA. The second screenshot shows that GA is reporting 7125 goal completions since I set up the goal on 7 August. The third screenshot shows the actual number of GA events recorded on outbound clicks to TA URLs in the same period, which is just 97. So the goal completions being recorded far exceed the actual goal completions, but I'm not sure why. I know I've done something wrong but as this is the first time I've used goals, I'd appreciate some help to see what I've done wrong. Thank you. 3f7dc3de6f9f1373d47994144a5cb016 56aa39130a7d54b07d8f2ce9cf1d7fb0 35ee827275928ca8c4d4c941f0672ef8
Affiliate Marketing | | Gavin.Atkinson0 -
Issues with centrally hosting your own affiliate links?
Can anyone see any issues centralising affiliate links across a network? Example - many of us would use some kind of redirect from our sites like abc.com/go/afflink1
Affiliate Marketing | | RaceMedia
bcd.com/go/afflink1 using either htaccess, php or javascript to redirect to the affiliate site But as your network of site grows - to change a link involves visiting 40 sites to change each of the files in the "go" folders. Would there be any net effect from using an otherwise vacant domain to host the links - so they only need to be changed in one place? Example
abc/go/afflink1 links to afflinks.com/1 which then redirects to affiliate site
bcd/go/afflink1 links to afflinks.com/1 which then redirects to affiliate site So all your links across the network for afflink1 would point to your afflinks.com/1 Any changes only require changes to one file afflinks.com/1 Assuming there is nothing else on afflinks.com - would there be any issues? Assume all links no followed and afflinks.com noindex. AND.... our redirects have been in place for some years using javascript,php or .htaccess. What is the current best practice for redirecting affiliate links?0 -
What is the right way to link to your main site?
Hi, we have a system for tracking the leads that comes from a specific affiliate website. each affiliate has a unique tracking code. not only for affiliates that work with us but also for the SEO team has an affiliate tracking code so our bosses can track the leads and traffic that come from the activity of the SEO team. this means, links towards our website look like: www.mydomain.com/?t_src=campaign&t=AFF&t_cre=links&A=371 www.mydomain.com/?A=371 I have few questions about this: 1. This is the right way to link to my company site? How dose google crawl those link? It's can harm the link value? 2. What is my option to show my boss all the traffic / leads that our seo team brings to the site trough Google Analytics? Hope to get your support. Thanks in advance.
Affiliate Marketing | | JonsonSwartz0 -
'legitimate' link wheels
I was wondering what SEOMoz' thoughts are on the mega legitimate link wheel sites that are out there. TechMediaNet have been buying up massive news/media sites which arent really monetised (adsense) like http://www.space.com/ http://www.ouramazingplanet.com/ livescience.com and others and generating, admittedly good quality, curated content. Then seeding them with content with backlinks to their money site, toptenreviews.com which in essence is a review site with thousands of pages loaded with affiliate links no better than any of the other site out there. e.g. http://www.livescience.com/9755-bing.html due to the scale of what they're doing pretty much any keyword search i do with review in it (the last thing i wanted to purchase was a usb 3 hub) ends up with toptenreviews.com dominating the serps presumably due to the high PR the viral nature of the media sites are working with. Do you think Google will crack down on this, or do you think it's capitalism in action? TechMediaNet have invested millions in this project and just gotten another $33 million in funding recently.....
Affiliate Marketing | | idimmu0 -
Will giving a blogger an affiliate url to my site reduce her links' seo value to me?
If a blogger were to write a post about one of my products and link to my product page, would giving her an affiliate url to link to rather than the normal link spoil the seo value of the link? So instead of mysite.com/product-one it would be mysite.com/affiliate/blogger/product-one Google would think... this is a transaction not a vote of confidence?
Affiliate Marketing | | Brocberry0 -
Big Affiliate Site vs. Small In House Software For Link Value
Hi, I have a client who sells consumer products and is interested in affiliate advertising. Of course, they can get set up with something like CJ.com. They are also interested in possibly using some third party software to take their affiliate effort in house and be able to offer publishers simple urls. The idea is that this might help the link profile for SEO as well. Here are my questions: Does anybody have any experience with the complication level associated with third-party software for link value path? So, relative pluses and minuses. Can anyone recommend an affiiate software that is reliable and easy to use? Any opinion on one big site to go with... CJ, GAN, someone else? Thanks!
Affiliate Marketing | | 945010