/ coil

How to Install Coil Web Monetization on WordPress

Benny

Benny

I am a passionate writer & content creator, entrepreneur, Industrial Engineering graduate, and a tech enthusiast. Blogging about the XRP ecosystem. All views are my own. Not giving financial advice.

Read More

One of the most exciting applications utilizing XRP for payments, with a huge potential to change the way web monetization works, is Coil. Already today, Coil is fully functional and allowing content creators to instantly receive donations from viewers who are subscribed to Coil while they consume the creators' content. In this blog post, I give you as a WordPress content creator a step-by-step tutorial on how to install Coil on your WordPress website.

What is Coil Web Monetization?

Coil is being developed by a San Francisco-based startup, which is working on a new business model for the web. It is enabled by the Web Monetization API and enables online content creators to monetize their content.

Coil subscribers are paying a monthly subscription (5$ as of right now, with different packages available in the future). Whenever they visit a Coil-enabled website, every second a small amount of XRP is being donated to the content creator. Real-time micropayments, which offer a much more attractive monetization option compared to being dependent on ads. If you want to learn more, I can recommend checking out Coil’s FAQs.

0

In the following, I will introduce three different ways showing how you can setup Coil on WordPress:

  1. Using a Child Theme > adding code to the functions.php
  2. Using a Parent Theme > adding code to the header.php
  3. Using a WordPress Plugin

Let’s get right into it!

Prerequisites

Create Your Coil Account

As the very first step, you need to sign up to Coil. For that you don’t need to wait for an invite code, all you have to do is go to the Coil website and go through the signup process. Only when you want to subscribe to Coil in order to donate to websites having Coil integrated, you need to submit your credit card details which will put you on the waitlist for an invitation code. To monetize your own content and to receive donations through Coil, you don’t need to wait for that.

Get Your Payment Pointer

The next thing you need is a payment pointer. This will tell Coil where to send the donations that are coming in from Coil subscribers visiting your WordPress site.

The easiest way to get your payment pointer is through the XRP Tip Bot. If you do not have an account there yet, head over to its website and login with either your Twitter, Reddit or Discord account.

Once you are logged in, click on Deposit in the navigation menu and on the following page click on the ILP option showing “Deposit to your ILP payment pointer”.

1

On the following page you will see your personal payment pointer, which looks like this (I am using Twitter to access the XRP Tip Bot):

2

The payment pointer is not confidential and bears no security risks, so don’t worry about hiding it.

On a side note, ILP stands for Interledger Protocol, which is what Coil is based on and what enables its real-time payments.

Enter Your Payment Pointer in Your Coil Account

For this quick step, log in to your Coil account, click on the “Monetize Content” tab in the navigation menu and enter your Payment Pointer in the designated field.

3

That’s it, now we are ready to install Coil on your WordPress website.

Method #1 - Modifying Your Child Theme’s functions.php

The preferred way of running your WordPress website is always by utilizing a child theme. This allows you to make any kind of customization to your theme, while at the same time always being able to update the theme you are using, without losing your customizations in the process. The same goes for setting up Coil on WordPress.

If you don’t know what a child theme, I strongly recommend you to look it up, for example here.

We need to add a little bit of code to our child theme’s functions.php . For that, go into your WordPress Dashboard > Appearances > Editor, then make sure that your child theme is selected in the top right corner. Then open the functions.php in the editor by clicking on it on the right.

Then all you have to do is copying the following piece of code and pasting it at the end of the code that you should see now. This piece of code simply adds the required meta tag to your website’s <head> section.

Attention: Don’t forget to put in your own Payment Pointer!

// Coil Web Monetization Integration
function custom_meta_tags() {
?>
<meta name="monetization" content="YOUR_PAYMENT_POINTER" />
<?php
}
add_action('wp_head', 'custom_meta_tags');

It should look like this:

4

Don’t forget to click the Update File Button when done.

That’s it!

Method #2 - Modifying Your Parent Theme’s header.php

If you are not using a child theme, then you can still install Coil by editing your theme’s header.php .

To do this, go into your WordPress Dashboard > Appearances > Editor and make sure the right theme is selected in the top right corner. Then open the header.php in the editor by clicking on it on the right.

All you have to do now is copying the following piece of code, which you can also find in your Coil account’s dashboard, and pasting it into the editor right under the <head> marker.

Attention: Don’t forget to put in your own Payment Pointer!

<meta name="monetization" content="YOUR_PAYMENT_POINTER" />

It should look like this:

5

Don’t forget to click the Update File Button when done.

That’s it!

With this method you have to remember that whenever you update your theme and its header.php gets overwritten, you need to manually add the meta tag again by following these steps. That is the benefit of using a child theme, theme updates can not break your own modifications.

Method #3 - Using a WordPress Plugin

The third and easiest method is using a WordPress plugin. Right now, there is one plugin available in the WordPress plugin library which is utilizing the up-to-date way of implementing Coil via meta tags - it is called WP Connect Coil.

6b

If you want to use a plugin, install WP Connect Coil and activate it. Then in your WordPress Dashboard go to Settings > Coil Setting.

Put your Payment Pointer into the designated field and click Save Changes.

7b

Check If It’s Working

To check if installing Coil on your WordPress page worked, you will need to install the Coil Chrome or Firefox extension. Once installed in your browser, head over to your website.

If you followed the steps correctly, the Coil extension should now indicate that the website is Web-Monetized. If you are not subscribed to Coil yet, you will see a message to verify your account with a credit card, if you are subscribed you will see the real-time payment stream being donated while you are browsing your website.

8

Another easy way to check if your Coil integration was successful is by using the Coil Checker created by Wietse Wind. Just enter your website's URL and click "Check".

9

You have now fully successful installed Coil Web Monetization on your WordPress website [1] and are part of the future of the internet - with a monetization method far better than ads. Instant micro-payments for creators and the potential for a completely new way of sharing content with your followers.

Welcome to the future of the internet, powered by XRP!

Having done that, I highly recommend you to sign up for a Coil subscription and to start supporting content creators. For the cost of a cup of coffee per month you can take a stance on how the internet should work from now on.

🚀

Updates
23 February 2019:
- Added link to Coil Checker tool.
- Revised WordPress plugin section to include newly released WP Connect Coil plugin.


  1. You can see it working on my own new WordPress blog here. ↩︎


Did you like this post by Benny?

Send some love:

Benny

Benny

I am a passionate writer & content creator, entrepreneur, Industrial Engineering graduate, and a tech enthusiast. Blogging about the XRP ecosystem. All views are my own. Not giving financial advice.

Read More