Wordpress affiliate tracking plugin

“Bloodhound” is our WordPress plugin for tracking exceptionally well.

This is typically used to track advertising / marketing methods and/or sales affiliates and JV partners.

It can do the following:

  1. Track any variables, even off-domain, including via multi-domain sessions – here’s an example:
    1. Customer gets to Landing page 1 with various Google Analytics and/or affiliate tracking details appended i.e. YourSite.com/lander?GA=Google.com&UTM_source=PPC&affiliate=BobJones&keyword=”widgets” – this allows you to know how this customer was brought to your site and compile it into useful, actionable reports.
    2. Customer then visits a few more pages on your site. This is where most data gets lost with a default installation – if you capture a lead typically on page 2 or more of a site, without this plugin, you won’t know how they got to you. With bloodhound, we can pass all these as hidden (invisible to the human) variables (well, visible to you, but not the website visitor).
    3. Customer might leave the domain for payment – say to Clickbank, Paypal.com, DUvisio, JVZoo, etc. – We can re-append variables back into the domain anytime for redirection, and even re-append just specific variables to keep things short & sweet in the URL bar – so in this example the customer leaves to paypal – normally this would again clear any tracking info….
    4. Then customer returns to your site for setup. We can re-associate the variables by using cookies to this visitor.
  2. Track via Phone by replacing the phone number site-wide on-the-fly. Other systems like CallRail do this and charge thousands per year. This can then be fed to Google Analytics, so that you could do something like:
    1. Postcard visitors see 800-555-4444
    2. Facebook visitors see 310-555-3333
    3. Google visitors see 212-555-2222
      1. Then by tracking which number the person called, you’ll know how they found you, and thus which advertising is working and what’s not.
  3. Make an entire “Swipe Website” for affiliates and JV partners, with a “fallback” if no tracking data is provided (typically the site-owner’s info). If you have a sales army, you can replace….
    1. The Contact Us – entire page / unique specific page OR just data on the page!
    2. The About Me/Us page – entire page
    3. Phone, URL, email, location
    4. Photo and Logo (2x options)

That’s the basics.

Next phases for this product are….

  • Logic – like IF userpayment=yes, then go to “setup.html”, but if userpayment=canceled go to “canceled.html”, or tied to product ID, etc.
  • 256-character-plus circumvention via session-collapsing if needed.

===== OFFICIAL DOCUMENTATION =============


In overview, the way this works is to…

  1. Read incoming variables from the URL of incoming traffic, and break them apart into individual variables – so we split out utm_source=sem (Search Engine Marketing i.e. PPC ads) from https://YourSite.com?utm_source=sem&utm_medium=google&utm_term=KeyPhraseHere&utm_content=textad&utm_campaign=SummerSale into a single variable
  2. We then cookie then user-visitor with any and all incoming variables – so affiliate tracking, google analytics, internal-use variables, sessions like products or search phrases, all of it.
  3. Then we’ll optionally keep them on the page (no forwarding, waiting for the visitor to click a button or do something) OR can instantly forward them to some other URL with or without specific variables left intact. In the case of Duvisio, an affiliate tracking platform, we could wipe out all variables except, say, the affiliate tracking portion of the URL.
    1. Note: we can also take in the “send user to….” URL as a dynamic variable too, in case of URL encryption
  4. User can then leave the domain entirely – go fill out other forms, e-sign documents, make a payment off-domain, etc. – then after signature, payment, etc the visitor gets dropped back to your site, on…
  5. YourSite.com/post-payment-return-page for example, which could do one of 2 things:
    1. Read the previous cookie session data and re-append it to some URL and them forward the user back along WITH all the variables re-added, OR
    2. Keep the user on the page, and include all those cookied variables as hidden form variables (for a setup form, for example).


  • [dynamicredirector_writer  redirect_id=’1′] — this is the cookie-writer. It will convert incoming long-URL traffic into cookied variables you can later read and act upon. Example: https://SwiftCloud.IO/landingpage1?method=”PPC”&source=”Google”&affiliate=”BobJones”
  • [dynamicredirector_reader redirect_id=”1″ url=”https://YourSetupPageHere.com/setupURL”] — this will read the previously cookied variables then redirect the user (with variables added back in!), to in this case, https://YourSetupPageHere.com/setupURL?method=”PPC”&source=”Google”&affiliate=”BobJones”


The way this works is to set the affiliate or traffic / advertising method (or both), then the system will evaluate that incoming URL, and swap data (like phone numbers) on-the-fly to match.


  • https://YourSite.com?referredby=bobjones
  • https://YourSite.com/bob where that page has a shortcode [setcookie affliate=”bobjones”] added to it

This then relies on cookies, so even if the user leaves and returns a month later, they will still see the Bob Jones version of this website.

TIP: some of the below fields can be used in hidden form-fields i.e. to track affiliate form referrers, lead generation, downline signups, etc.


  • [bloodhound_email default=”default_email_here”]
  • [bloodhound_phone default=”default_phone_here”]
  • [bloodhound_name default=”default_name_here”]
  • [bloodhound_url default=”default_url_here”]
  • [bloodhound_numberone default=”default_numberone_here”] /// any type of number – affiliate ID, form ID, network marketing ID… any kind of ID number.
  • [bloodhound_numbertwo default=”default_numbertwo_here”]
  • [bloodhound_image default=”https://YourSite.com/completeLocalPath/2017/12/3/default_imagefile_here.jpg”]  // photo of the affiliate, logo, etc. – complete path to photo or image
  • [bloodhound_sponsor_id default=”12345″] – if using multi-level tracking i.e. superaffiliate, or MLM / network marketing systems. Optional, as all these are, but used only if you have multi-level tracking.
  • [bloodhound_sponsor_name default=”Henry Jones”] – same as above, but just a display name
  • [bloodhound_affiliate_signup] — OPTIONAL – if you want to setup a front-end affiliate signup form, then use this for tracking. Note this doesn’t handle payment to affiliates, it just does the tracking codes – but if you need a simple way to track referral sources and/or generate leads to the right people, this will create a self signup form.