Amazon is the parts programme we already have an account for, so wire that one - #11
Merged
Conversation
… that one The three programmes the other vendors run (eBay Partner Network, CJ, Rakuten) all need an account nobody here has and a W-9 to open one. Amazon Associates is already open, so it is the one that can actually pay, and Amazon sells more of what a VIN lookup sends people looking for — filters, sensors, brakes, trim — than the retail chains do. Amazon's link is not the shape the other networks use, which is why it is not just another AFFILIATE_LINKS template. CJ, Rakuten and eBay hand you a URL of theirs with the destination encoded inside it; Amazon wants its own URL with `tag` on it. So the vendor row carries its own tagger, and a network template still wins if one is ever configured for the same vendor. This is the shape sh1pt's `affiliate-amazon-associates` adapter builds, including `ascsubtag`, which is a reporting dimension rather than a second account: traffic from here stays separable in the dashboard even though the tag is shared with another property. A subtag is sanitised, because Amazon silently drops one with punctuation in it. `AMAZON_ASSOCIATE_TAG` is the name the rest of the fleet already uses, and there is deliberately no default in code: no tag configured means no tag appended and nothing described as sponsored, because it would not be. The deployment carries the value. Amazon's Operating Agreement requires one sentence, in its words, wherever an Associates link appears, so the disclosure says it — and only when an Amazon link on that page is actually tagged. Also `?part=` on the page, which the JSON endpoint already honoured and the page was dropping on the floor, the same way it used to drop the odometer reading. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012BzJdwiBGU9hmMGE5fBxjA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Anthony has no eBay Partner Network, CJ or Rakuten account, and opening one needs a W-9. He does have Amazon Associates. So Amazon is the programme that can actually pay, and it sells more of what a VIN lookup sends people looking for — filters, sensors, brakes, trim — than the retail chains do.
Why it isn't just another
AFFILIATE_LINKStemplateCJ, Rakuten and eBay hand you a URL of theirs with the destination encoded inside it. Amazon wants its own URL with
tagon it. Same goal, different shape, so the vendor row carries its own tagger rather than being bent into the template mechanism:A network template still wins if one is ever configured for the same vendor, so this doesn't paint us into a corner.
This is the shape sh1pt's
affiliate-amazon-associatesadapter already builds,ascsubtagincluded. That subtag is a reporting dimension rather than a second account, which matters here: the tag is shared with another property, and the subtag keeps this traffic separable in the Associates dashboard anyway. It's sanitised on the way in, because Amazon silently drops a subtag with punctuation in it.i=automotivekeeps a search for "2014 Honda Civic alternator" inside the Automotive store instead of returning a book about one.No tag in code
AMAZON_ASSOCIATE_TAGis the env-var name the rest of the fleet already uses (nicheforge-wordpress/.env.example). There is deliberately no default in the source: no tag configured means no tag appended and nothing described as sponsored, because it wouldn't be. The deployment carries the value.Disclosure
Amazon's Operating Agreement requires one sentence, in its words, wherever an Associates link appears. The disclosure now says it — and only when an Amazon link on that page is actually tagged:
Also
?part=on the page, which the JSON endpoint already honoured and the page was dropping on the floor — the same way it used to drop the odometer reading.Verified
AMAZON_ASSOCIATE_TAG=parklookup-20:www.amazon.comwithtag=parklookup-20,ascsubtag=nichedb-vin,rel="sponsored nofollow noopener"rel="nofollow noopener"sponsored: false🤖 Generated with Claude Code
https://claude.ai/code/session_012BzJdwiBGU9hmMGE5fBxjA