.

..

TMU Affiliate Plugin Instructions

Test Product Setup

Create a temporary test product for us to purchase as a test order to verify the system is working as intended on your website. The test product should have the following settings:

  • Name: TMU Test Product
  • Price: $2 (two dollars)
  • Shipping Cost: $1 (one dollar)

Make it so that the product is not visible on your website, but you can send us the URL to the test product so that we can purchase it.

NOTE about coupon: TMU6

Make sure that the coupon TMU6 is active and produces a 6% discount on the order.

Plugin Installation

Follow the instructions below to install and activate and test your TMU tracking plugin.

The TMU Tracking plugin allows The Mattress Underground to track approved referral activity and on-site funnel events on your website.

The plugin is already pre-configured. No settings need to be entered by you.

Your only job is to:

  1. install the plugin
  2. activate it
  3. purge your cache
  4. confirm that the plugin is running

Step 1: Download the Plugin

Download and save the latest TMU Tracking plugin ZIP file provided to you by The Mattress Underground.

Do not unzip the file.

Step 2: Upload the Plugin in WordPress

  1. Log in to your WordPress admin area.
  2. Go to Plugins and click Add New Plugin.
  3. Click Upload Plugin.
  4. Select the TMU Tracking ZIP file.
  5. Click Install Now.

Step 3: Activate the Plugin

After installation is complete, click Activate Plugin.

No additional setup is required.

Step 4: Purge All Site Caches

This step is important.

Because the plugin adds tracking code to the front end of your website, older cached pages may continue to load without the new code until the cache is cleared.

After activating the plugin, purge all caches used by your site, including:

  • Your WordPress caching plugin cache, if any
  • Server or hosting cache, if any
  • CDN cache, if any
  • Cloudflare cache, if Cloudflare is active

Use a full cache purge, not a partial one.

This is normally a one-time step after activation, and again after any future plugin update. All website pages must be purged from all caches for the system to work.

Step 5: Confirm That the Plugin Is Running

After activation and cache purge, verify the plugin in these ways:

A. Check your public site

Open your website in a private/incognito browser window and visit a few public pages.

The pages should load normally with no obvious layout or functionality problems.

B. Check the plugin status URL

In your browser, open this URL on your own domain:

https://yourdomain.com/wp-json/tmu-tracking/v1/status

‼️ Replace yourdomain.com with your actual website domain.

If the plugin is active and working, the page should display a message like this:

{“active”:true,” merchant_id_configured”:true,” api_key_configured”:true}

Step 6: If Something Does Not Work

If the message on the screen is different or shows “false”, the plugin does not appear to be working. In that case follow these steps:

  1. Make sure the plugin is installed and activated in WordPress.
  2. Purge all caches again, including Cloudflare if applicable.
  3. Test the status URL again.
  4. If it still does not work, contact The Mattress Underground and let us know that installation was completed but the status message does not look right.

Completion Checklist

Before notifying us that installation is complete, confirm all of the following:

  • The plugin has been uploaded and activated
  • All site/server/CDN/Cloudflare caches have been purged
  • The website loads normally on public pages

Contact Us

If you have any problems or need assistance at any point of this process, please contact Member Support at [email protected]