Affiliate Marketers/Ghost.org

Good Afternoon Everyone,

I’m curious if anyone is doing Affiliate marketing with their Ghost.org blog…

I want to find a similar tool that can integrate to Ghost, similar to Thirsty Affiliates for Wordpress.

If you are doing affiliate marketing and have a site on Ghost

I’d love to connect, please help.

2 Likes

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.

Hi there @Stayaheadofai and @Unicom

I am planning to release an integration that will enable curated cards like Lasso, Genius or Thirsty Affiliates.

Wondering if you have feedback on what features you might find useful and if you’d be willing to use it.

Features:

  1. Show the item prices at major retailers (Target, Amazon, Walmart etc.), so your reader can choose the best price

  2. Show product availability so your reader knows they can get it

  3. Direct international customers to the right Amazon store

  4. Price and availability gets refreshed at least once every 24 hours, so it will be very accurate

  5. Fix broken links automatically

See it in action on our test blog Affordable Stocking Stuffers: Fidget toys that buy parents time (and sanity) (oh-mother.ghost.io) (on Ghost, of course :wink:)

Here’s a screen shot of a card.

Let me know what you think!

1 Like

This would be useful for me at least, do let me know when it’s available, and thanks for the work put into it!

1 Like

Hey @Bret,

Thanks for the feedback! :pray: 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.

  • Jo

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.

1 Like

Can you please provide an example of how to do this?

First

Labs > Redirects.yaml > Edit

301:
  /go/brand: https://www.brand.com/referrallink

Then

Post > Edit > Add HTML widget

<a rel="nofollow" href="https://www.yourwebsite.com/go/brand">This is a nofollow affiliate link</a>
2 Likes

Hi there @chillbilldill.com ! Thanks for your feedback!

Jo

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>
2 Likes

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!

You’re welcome!
Proudly done with the help of GPT-4 on the go :slight_smile:
I just checked it on my website, this snippet actually works.

Thank you. Could you please show an example of how one would use this affiliate script in your affiliate link?

Let’s start with the basics:

When you have a referral link, it looks something like: https://somefancy.brand/product-page?ref=somereflink123456789&some_other=stuff

This is a not very nice link and it has 3 problems:

  1. If you need to update a link for some reason, you’ll need to check all pages on the website and fix them manually.
  2. 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.

  1. 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.


I’ve also added a link to Google for demonstration.

Next, add a footer code inject to your article. Go to Post Settings → Code Inject

Once you preview your post in the new window, you’ll see this. All links with the the /go/ part will have nofollow rel attribute

Hope this helps!

1 Like

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:

document.addEventListener("DOMContentLoaded",function(){let e=document.querySelectorAll('a[href*="/go/"]');e.forEach(function(e){if(e.hasAttribute("rel")){let t=e.getAttribute("rel");t.includes("nofollow")||e.setAttribute("rel",t+" nofollow")}else e.setAttribute("rel","nofollow")})});

This is particularly useful if you have several code injects on your page.

1 Like

Hi eduard

Thanks for the detailed explanation.

But in the information you provided, it is not showing how you used this affiliate referral link “https://somefancy.brand/product-page?ref=somereflink123456789&some_other=stuff” to show up as “/go/fancy-brand” in an article or post.

It’s covered in the link to the Ghost tutorial on redirects:

This would be perfect! Any update yet? :blush:

@joseo Are you still working on this?

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.