diff --git a/astro.config.mjs b/astro.config.mjs
index 3a13f9a7..64915b9a 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -99,10 +99,6 @@ export default defineConfig({
label: 'Learn about receiving payments',
link: '/publishers/about-receiving'
},
- {
- label: 'WordPress plugin',
- link: '/publishers/wordpress'
- },
{
label: 'Publisher tools',
collapsed: true,
@@ -111,6 +107,10 @@ export default defineConfig({
label: 'Banner tool',
link: '/publishers/banner-tool'
},
+ {
+ label: 'Offerwall tool',
+ link: '/publishers/offerwall-tool'
+ },
{
label: 'Widget tool',
link: '/publishers/widget-tool'
@@ -122,6 +122,10 @@ export default defineConfig({
{
label: 'Probabalistic revshare generator',
link: '/publishers/revshare-tool'
+ },
+ {
+ label: 'WordPress plugin',
+ link: '/publishers/wordpress'
}
]
}
diff --git a/public/img/docs/pubtools/offerwall-appearance-preview.png b/public/img/docs/pubtools/offerwall-appearance-preview.png
new file mode 100644
index 00000000..4f184d6c
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-appearance-preview.png differ
diff --git a/public/img/docs/pubtools/offerwall-choice-list.png b/public/img/docs/pubtools/offerwall-choice-list.png
new file mode 100644
index 00000000..38564465
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-choice-list.png differ
diff --git a/public/img/docs/pubtools/offerwall-choice-off.png b/public/img/docs/pubtools/offerwall-choice-off.png
new file mode 100644
index 00000000..3b34ab32
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-choice-off.png differ
diff --git a/public/img/docs/pubtools/offerwall-color-picker.png b/public/img/docs/pubtools/offerwall-color-picker.png
new file mode 100644
index 00000000..484e0c0a
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-color-picker.png differ
diff --git a/public/img/docs/pubtools/offerwall-colors.png b/public/img/docs/pubtools/offerwall-colors.png
new file mode 100644
index 00000000..fb169479
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-colors.png differ
diff --git a/public/img/docs/pubtools/offerwall-corner.png b/public/img/docs/pubtools/offerwall-corner.png
new file mode 100644
index 00000000..a7d81950
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-corner.png differ
diff --git a/public/img/docs/pubtools/offerwall-custom-s1OLD.png b/public/img/docs/pubtools/offerwall-custom-s1OLD.png
new file mode 100644
index 00000000..acff1529
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-custom-s1OLD.png differ
diff --git a/public/img/docs/pubtools/offerwall-custom-s2.png b/public/img/docs/pubtools/offerwall-custom-s2.png
new file mode 100644
index 00000000..6cd13147
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-custom-s2.png differ
diff --git a/public/img/docs/pubtools/offerwall-custom-s3.png b/public/img/docs/pubtools/offerwall-custom-s3.png
new file mode 100644
index 00000000..5e138e8b
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-custom-s3.png differ
diff --git a/public/img/docs/pubtools/offerwall-custom-s4.png b/public/img/docs/pubtools/offerwall-custom-s4.png
new file mode 100644
index 00000000..79cf7ff8
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-custom-s4.png differ
diff --git a/public/img/docs/pubtools/offerwall-custom-s5.png b/public/img/docs/pubtools/offerwall-custom-s5.png
new file mode 100644
index 00000000..1e3f1626
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-custom-s5.png differ
diff --git a/public/img/docs/pubtools/offerwall-extension-disabled.png b/public/img/docs/pubtools/offerwall-extension-disabled.png
new file mode 100644
index 00000000..f6c8e43c
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-extension-disabled.png differ
diff --git a/public/img/docs/pubtools/offerwall-extension-enabled.png b/public/img/docs/pubtools/offerwall-extension-enabled.png
new file mode 100644
index 00000000..1e49a821
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-extension-enabled.png differ
diff --git a/public/img/docs/pubtools/offerwall-extension-uninstalled.png b/public/img/docs/pubtools/offerwall-extension-uninstalled.png
new file mode 100644
index 00000000..4247666f
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-extension-uninstalled.png differ
diff --git a/public/img/docs/pubtools/offerwall-font.png b/public/img/docs/pubtools/offerwall-font.png
new file mode 100644
index 00000000..814b77f9
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-font.png differ
diff --git a/public/img/docs/pubtools/offerwall-message-dashboard.png b/public/img/docs/pubtools/offerwall-message-dashboard.png
new file mode 100644
index 00000000..c09c8c8b
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-message-dashboard.png differ
diff --git a/public/img/docs/pubtools/offerwall-message-preview.png b/public/img/docs/pubtools/offerwall-message-preview.png
new file mode 100644
index 00000000..196b52ac
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-message-preview.png differ
diff --git a/public/img/docs/pubtools/offerwall-pm-dashboard.png b/public/img/docs/pubtools/offerwall-pm-dashboard.png
new file mode 100644
index 00000000..a73ca1c6
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-pm-dashboard.png differ
diff --git a/public/img/docs/pubtools/offerwall-preset-labels.png b/public/img/docs/pubtools/offerwall-preset-labels.png
new file mode 100644
index 00000000..456c1f98
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-preset-labels.png differ
diff --git a/public/img/docs/pubtools/offerwall-select-sites.png b/public/img/docs/pubtools/offerwall-select-sites.png
new file mode 100644
index 00000000..6a66c778
Binary files /dev/null and b/public/img/docs/pubtools/offerwall-select-sites.png differ
diff --git a/public/img/docs/pubtools/tools-wallet-confirmation-prompt.png b/public/img/docs/pubtools/tools-wallet-confirmation-prompt.png
index cdd6ce75..453b083b 100644
Binary files a/public/img/docs/pubtools/tools-wallet-confirmation-prompt.png and b/public/img/docs/pubtools/tools-wallet-confirmation-prompt.png differ
diff --git a/src/partials/csp.mdx b/src/content/docs/partials/csp.mdx
similarity index 98%
rename from src/partials/csp.mdx
rename to src/content/docs/partials/csp.mdx
index 542e6800..5b150f0f 100644
--- a/src/partials/csp.mdx
+++ b/src/content/docs/partials/csp.mdx
@@ -1,3 +1,7 @@
+---
+title: CSP requirements
+---
+
If your website uses Content Security Policy headers, you must add the following directives to allow the publisher tools embed script to work:
| Directive | Value | Description |
diff --git a/src/partials/tools-change-wallet.mdx b/src/content/docs/partials/tools-change-wallet.mdx
similarity index 82%
rename from src/partials/tools-change-wallet.mdx
rename to src/content/docs/partials/tools-change-wallet.mdx
index d0a0fb51..f75da738 100644
--- a/src/partials/tools-change-wallet.mdx
+++ b/src/content/docs/partials/tools-change-wallet.mdx
@@ -1,9 +1,13 @@
+---
+title: Connect to new wallet address
+---
+
1. Enter your current wallet address.
2. Click **Continue** to connect to your wallet. A list of your saved configurations appears.
3. Select the configuration that you want to connect to a new wallet address.
4. Click **Add another wallet address**.
5. Enter the new address in the wallet address field.
6. Click **Continue**. A confirmation prompt appears.
-7. Click **Confirm**. You're directed to your wallet provider to sign in and confirm your ownership of the new wallet address.
+7. Click **Confirm**. You're directed to your wallet provider. Sign in and confirm your ownership of the new wallet address.
8. Click **Save and generate script**.
-9. Replace the existing script on your site with the newly generated script.
+9. Replace the existing script on your site with the new script.
diff --git a/src/content/docs/publishers/banner-tool.mdx b/src/content/docs/publishers/banner-tool.mdx
index 8ba291b3..a77b87d3 100644
--- a/src/content/docs/publishers/banner-tool.mdx
+++ b/src/content/docs/publishers/banner-tool.mdx
@@ -4,9 +4,7 @@ title: Banner tool
import { LinkButton } from '@astrojs/starlight/components'
import { LinkOut } from '@interledger/docs-design-system'
-import Connect from '/src/partials/tools-connect-wallet.mdx'
-import Change from '/src/partials/tools-change-wallet.mdx'
-import CSP from '/src/partials/csp.mdx'
+import CSP from '/src/content/docs/partials/csp.mdx'
Create a
@@ -42,17 +36,23 @@ If your website uses Content Security Policy (CSP) headers, there are certain [d
### Generate your script
1. Click **Save and generate script**.
-2. Add the script to your site.
+ :::note[Save edits only]
+ Click **Save edits only** if you aren't ready to generate your script. Your configurations are saved on webmonetization.org.
+ :::
+ A wallet confirmation prompt appears.
+2. Click **Confirm**. You're directed to your wallet provider to sign in and confirm your ownership of the wallet address. After confirmation, you'll return to the Banner tool page.
+3. Copy the script that appears in the overlaid screen.
```js wrap title="Example script"
```
-3. Go to your site and check that the banner appears correctly. If you have the Web Monetization extension installed, you might need to disable the extension for the banner to appear.
+4. Add the script to your site.
+5. Go to your site and check that the banner appears correctly. If you have the Web Monetization extension installed, you might need to disable the extension for the banner to appear.
## Change an existing banner configuration
@@ -61,12 +61,6 @@ If your website uses Content Security Policy (CSP) headers, there are certain [d
3. Make your changes, then click **Save edits only**. Your [script](#generate-your-script) remains the same. There's no need to update your site's code.
4. Refresh a page on your site that uses the configuration's script to verify your changes are live.
-## Connect banner to a new wallet address
-
-
+2. Click **Continue**.
+3. Change the label of a configuration by selecting the pencil icon and typing over the default.
+4. Select the font to use on the screen.
+5. Select the colors to use for the background, body text, theme, and headline text.
Click the paint can icon to enter a hex value or use the color picker.
+6. Select the screen's corner radius.
+7. Review your changes in the preview panel. The preview shows what a visitor will see if they don't have the Web Monetization extension.
**Visitor without extension**
Different screens will appear if the visitor has the extension enabled or disabled. The appearance settings you selected above also apply to these screens.
+ **Visitor with extension enabled**
+ **Visitor with extension disabled**
+ :::note[Save edits only]
+ Click **Save edits only** if you aren't ready to generate your script. Your configurations are saved on webmonetization.org.
+ :::
+ A wallet confirmation prompt appears.
+2. Click **Confirm**. You're directed to your wallet provider to sign in and confirm your ownership of the wallet address. After confirmation, you'll return to the Offerwall tool page.
+3. Copy the script that appears in the overlaid screen.
+ ```js wrap title="Example script"
+
+ ```
+4. Add the script to the `` of each page you want to offer Web Monetization.
+
+## Add Web Monetization as a custom Offerwall choice
+
+You must sign in to your Google Ad Manager account to complete these steps.
+
+1. Select the _Privacy & Messaging_ tab.
+2. Find the Monetization section.
+3. Find the Offerwall message type card and click **Create**.
+4. Under _Your sites_, click **Select sites**.
+5. Choose the sites where you want your Offerwall to appear, then click **Confirm**.
+6. Under _User choices_, locate the _Custom choice_ option and click **Set up**.
+ :::tip[]{icon="comment-alt"}
+ If you already have an offerwall message, click **Manage**, then click **Create Message**.
+ :::
+
+7. Select the confirmation box that states, _I confirm that I have implemented the Offerwall Custom Choice API_, then click **Next**.
+ :::note[Offerwall Custom Choice API]
+ Don't implement the Offerwall API in Google Ad Manager. Just [generate your script](#generate-your-script) and add it to your website. The script implements the API for you.
+ :::
+
+8. Enter a title for your custom choice and click **Next**. We recommend using _Web Monetization_.
+9. Enter a subtitle for your custom choice and click **Next**. We recommend using _Support us with micropayments_.
+10. Click **Confirm**.
+11. If you're not ready to publish this version of your Offerwall, click **Save draft**. Otherwise, click **Publish**.
+12. Go to your site and check that the Offerwall appears correctly. If your Offerwall doesn't appear at all, check your implementation of the Offerwall Custom Choice API.
+
+:::note[Test the Web Monetization choice]{icon="puzzle"}
+To test that the correct screen appears for each [scenario](#states), visit your site with the extension:
+
+- Uninstalled
+- Installed but disabled
+- Installed and enabled
+
+We recommend testing in incognito/private windows. This ensures your local data is removed between tests and the screens appear when expected.
+:::
+
+## Change an existing appearance configuration
+
+1. Go to the
@@ -46,17 +40,20 @@ Add a
+2. Click **Confirm**. You're directed to your wallet provider to sign in and confirm your ownership of the wallet address. After confirmation, you'll return to the Widget tool page.
+3. Copy the script that appears in the overlaid screen.
```js wrap title="Example script"
```
-3. Go to your site and check that the widget appears correctly.
+4. Add the script to your site. We recommend placing it just before the closing `` tag. If you're using a site management tool like WordPress, you'll place the code in a script-type element.
+5. Go to your site and check that the widget appears correctly.
You're now ready to accept one-time payments. Remember that if your site is monetized with multiple wallet addresses that only the address connected to the widget receives one-time payments.
@@ -67,12 +64,6 @@ You're now ready to accept one-time payments. Remember that if your site is mone
3. Make your changes, then click **Save edits only**. Your [script](#generate-your-script) remains the same. There's no need to update your site's code.
4. Refresh a page on your site that uses the configuration's script to verify your changes are live.
-## Connect widget to a new wallet address
-
-
-2. Click **Continue**. A confirmation prompt appears.
-3. Click **Confirm**. You're directed to your wallet provider to sign in and confirm your ownership of the wallet address.