I wouldn’t write off affiliate marketing either, even though it’s a perpendicular idea to paid memberships. However, in many markets and niches you cannot sell subscriptions, but affiliate marketing works very well there. For example, reviews of technology, various curated collections, and so on. I think the core team still has something to do and they will not seriously go in this direction. we don’t expect a system for managing affiliate links or anything like that exists in the wordpress ecosystem.
However, just as a thought experiment, imagine that you could create curated collections in Ghost. Whether to do it in the form of post cards or create special collections based on some kind of special tags, let’s discuss. At least the first step shouldn’t be difficult.
Thanks for the feedback! It’s heartening to know we may be meeting an actual need .
Here’s a link to the early access list: [Clics.so Early Access](https://Early Access to Clics). When it’s ready we will give you a code for a free trial.
If you have any feature requests, give us a shout and let us know.
I do plenty of affiliate marketing on my Ghost based site, but I never really needed to use any plugins/extensions. I manage all of my affiliate partnerships within Google Sheets, then I use the snippet feature in Ghost to create sponsored link html snippets for reuse as needed.
In my affiliate marketing links on Ghost, I only use nofollow vanity links with 301 redirects, leveraging the redirects.yaml file in the labs section.
This approach allows for easier troubleshooting and maintenance. Additionally, I opt for the HTML widget over snippet features or product widgets, as it enables the inclusion of nofollow links.
I’d also add a code inject that adds nofollow to all /go/ links, something like this:
<script>
document.addEventListener('DOMContentLoaded', function() {
// Select all anchor tags
const links = document.querySelectorAll('a[href*="/go/"]');
// Loop through each link and add 'rel=nofollow' if it doesn't already exist
links.forEach(function(link) {
if (!link.hasAttribute('rel')) {
link.setAttribute('rel', 'nofollow');
} else {
// If the link already has a 'rel' attribute, add 'nofollow' to it without overwriting existing values
const existingRelValue = link.getAttribute('rel');
if (!existingRelValue.includes('nofollow')) {
link.setAttribute('rel', existingRelValue + ' nofollow');
}
}
});
});
</script>
Thank you, this is very nice and could help people to add their affiliate links in the Ghost buttons or in the product widget on Ghost. I will save this for future review!
This is a not very nice link and it has 3 problems:
If you need to update a link for some reason, you’ll need to check all pages on the website and fix them manually.
everyone sees that it’s an affiliate link. Affiliate link cloaking works in such a way, when you have an internal link like yourbestweb.site/go/fancy-brand which redirects to the mentioned above somefancy.brand page.
Problems 1 and 2 are resolved via redirects.yml file. You can store as many affiliate links as you want. Please refer to the Ghost CMS documentation.
Finally, there’s a rel=nofollow topic. It’s recommended to add nofollow rel attribute into referral links for better SEO practices. There’s a ton of information about it, here’s some random article from Semrush explaining the details.
So the script I showcased solves only the problem #3.
In the editor you can add convenient affiliate links like this: /go/fancy-brand instead of the full URL. Since we begin the link with the / character, it will always resolve to your website.
Finally, once the JS script logic is understood you may want to minify the code.
The original script is about 750 characters. If you minify it using some free online tools like this one, you can get a more compact version of the script which is undes 300 characters:
We are currently displaying about 1000 affiliate products via affiliate-toolkit.com plugin for our WP site, but we are considering switching to ghost to simplify everything.