Help · Connect your sources
Adding RevWarn's scripts to your site
Where to paste the visitor counter and the page labels on WordPress, Shopify, Squarespace, Wix, Webflow, Ghost and GoDaddy.
About 5 minutes.
RevWarn can use two short scripts, both pasted once per site, site-wide:
The visitor counter (Cloudflare Web Analytics), only if your site isn't on Cloudflare and you don't count visits with Google Analytics. It's copied from Cloudflare; the Cloudflare help page says where.
The page labels, which tell the networks which page each sale came from, and count clicks to stores. On WordPress, the RevWarn plugin adds them for you (below). Otherwise your dashboard's Sites page has the line for each site.
Everything else (uptime, link checks, domain renewals, sitemaps, search) needs nothing on your site, whatever it's built with. Both scripts go at the end of the page, just before </body>, where your platform offers that; the head works too.
WordPress: the RevWarn plugin (page labels)
- In your dashboard, open Settings → Sites and, under Count store clicks, download the plugin for that site. It already knows the site and your dashboard.
- In WordPress: Plugins → Add New → Upload Plugin, choose the zip, Install Now, then Activate.
- Nothing to set up. Within a day your Earnings page shows it on your pages.
Cloaked links (Pretty Links, ThirstyAffiliates, Lasso and similar)
The page labels go into the network's own link, so on the page they can only be added to links that go straight to a network. A cloaked link (an address on your own site, like yoursite.com/go/product, that redirects to the network) is left as it is there.
On WordPress, the RevWarn plugin (version 1.1 or later) can label them at the redirect instead. In WordPress, open Settings → RevWarn page labels and tick Add page labels to cloaked links too. When someone clicks a cloaked link on one of your pages, the plugin adds that page's label to the network link it redirects to: in the network's own field, only when the link has no label already, and only for clicks that came from a page of the same site (it reads the page from the browser's Referer). Nothing else about the redirect changes, apart from asking caches not to keep a labelled redirect, since it depends on the page.
It works with ThirstyAffiliates and Pretty Links through their own redirect hooks, and with any other link plugin (Lasso among them) by looking at the redirect just before it's sent. It's off until you turn it on.
Without WordPress, or with it off, sales through cloaked links still count in your revenue; they just aren't credited to a page. Link straight to the network on your best-earning pages to see what each one earns.
Updating from plugin 1.0: download the plugin again on the Sites page, then in WordPress Plugins → Add New → Upload Plugin, choose it and pick Replace current with uploaded.
WordPress (your own hosting), pasting a line
- Install the free WPCode plugin (Plugins → Add New, search for WPCode).
- Open Code Snippets → Header & Footer.
- Paste into the Footer box and select Save Changes.
Shopify
- Go to Online Store → Themes.
- Next to your live theme, open the … menu and choose Edit code.
- Open layout/theme.liquid, paste just before </body>, and select Save.
Squarespace
- Go to Website → Pages, scroll to the bottom and open Custom Code → Code Injection.
- Paste into Footer and select Save.
Wix
- In your site's dashboard, open Settings, then Custom Code in the Advanced section.
- Select + Add Custom Code and paste the line. Give it a name like RevWarn.
- Under Add Code to Pages choose All pages, and Load code on each new page.
- Under Place Code in choose Body - end, then Apply.
Webflow
- Open Site settings → Custom code.
- Paste into Footer code (before </body> tag) and select Save.
- Publish the site: the code runs on the published site only, not in the Designer.
Ghost
- In Ghost admin, open Settings → Advanced → Code injection.
- Paste into Site footer and select Save.
GoDaddy Website Builder
- In the site editor, open Settings, then Head HTML if your site has it.
- Paste the line and select Save, then publish.
Hand-built, or anything else
Put the line in the template every page shares, just before </body>. To check it's working: page labels show as ✓ on your Earnings page after the next nightly link test, and the visitor counter shows visits within the hour.
From the service's own documentation: Squarespace plans with Code Injection (a Squarespace designer's summary) · Ghost: code injection · Shopify: web pixels run in a sandbox · Cloudflare: Get started with Web Analytics. Menus move; if a step doesn't match your screen, tell us.