Forum Moderators: open
This affiliate partner provides a code generator to all the partners with a stern warning not to alter the code in any way (or else you might lose commissions).
So if I want access to these important affiliates I am stuck with this bum code generator. I tried to e-mail the company but get no replies.
I use [w3.org...] validator and this code just spews out dozens of errors for every link this code generator gives me.
There are 3 problems with this code.
1. They use a 1x1 pixel image for tracking purposes with a
NOSAVE attribute and no alt="" tag NOSAVE I find that this is a completely usless tag and should be removed. (There is no problem for me to add an empty alt="" either) 2.
align="center" within an image element. (options are "top" "middle" "bottom") 3. Unencoded ampersands.
This accounts for dozens of errors.
Within a URL
0629&siteid=41482307&bfpid=189789344X&bfmtype= Should be
0629&siteid=41482307&bfpid=189789344X&bfmtype= This is because a browser may misrender these unencoded ampersands as character encoding
&siteid gets confused as &sit; So my question is should I
A. Find a different validator and leave the code alone?
B. Fix the code. Will this really screw up the tracking?
This validator also hates my google search bar because it fails to recognize a table within a form element. It spews out a string of these:
Line 59, column 75: end tag for element
"INPUT" which is not open ...s" value="www.ihatecodegenerators.duh"></input>
Of course it will be a pain when you want to check your markup in the future. You'll have to always take out the offending parts, or just ignore the resulting errors.
You could always ask the company responsible to fix their markup, but I doubt they'd do anything.
</input> tags. (I found out they are unnessecary) The search box still works fine. </image> for their logo in the search box which is really wierd and also invalid. For the affiliate:
The
align= "center" In the image tag does not bother me to fix because that is simply the image tag for displaying the gif on my page. NOSAVE attribute in this image serve any purpose? Also is an empty alt tag ok or should I put a in there? (I know google does not like missing alt tags) Just make sure that anything you send or call from their server is exactly as they want it, and change the rest.
& should be changed to & & and you'll see why. & to & even within the text body, Googlebot will not.
The NOSAVE and alt="" and the various "align" things are all easy to do.
The "& as &" problem should also be fixed. The browser knows what to do with an & in the URL. It puts an & on the screen and sends an & to the remote server.
The problem with the closing </input> tag is that the code as given is for XHTML. You don't need that for HTML 4.01 so just delete it. Whoever supplied that code took the "easy" way out "for them". They should have published two versions: one for HTML and one for XHTML and let users choose which one to use.
The warning about not modifying the code I take to mean to not alter the parameters, not alter their values, and to not alter the order that they are supplied in the query string and so on. If the HTML isn't valid, I see no problem in correcting those errors.
Just do it!
Oh well they got some damn good affiliates though, my site is travel related so I need some of these big name affiliates just for the service they provide.
The tracking seems to be working fine (# of impresssions) but I havn't made any sales yet.
I'm going to let it slide for a while (with fixed code) and see what happens.
I found another afilliate marketing company that uses nice clean code generator (other than image sizes declared only in alt) I,m using both of them to see how they fare against each other. The only problem is the crappy code one is the one I prefer but not if my sales don't get tracked.