Install & Configure

Introduction

The Fans United WordPress plugins provide a suite of tools for integrating interactive sports content and mini-games into WordPress sites. The plugin suite consists of two main components:

  1. Fans United Core - Required base plugin that handles SDK initialization and authentication
  2. Fans United Mini Games - Add-on plugin for embedding quizzes, polls, and interactive games

Installation

Requirements

  • WordPress 5.0 or higher
  • PHP 7.2 or higher
  • Active internet connection to communicate with Fans United API services

Download

Installation Steps

  1. Install and activate the Fans United Core plugin first
  2. Install and activate the Fans United Mini Games plugin
  3. Configure the Core plugin settings with your API credentials
  4. Begin using shortcodes to embed content

Fans United Core Plugin

The Core plugin provides the foundation for all Fans United functionality on your WordPress site.

Configuration

Navigate to Settings > Fans United Core to configure the following sections:

API Configuration

FieldDescription
Client IDYour unique Fans United client identifier
API KeyYour Fans United API authentication key
EnvironmentSelect which Fans United environment to use (Production, Development, Staging, WATG, YOLO)
ID ProviderThe ID provider for sports data (Native, Sportal365, Enetpulse, Sportradar)

Firebase Configuration

FieldDescription
Firebase API KeyYour Firebase project API key
Auth DomainFirebase authentication domain
Project IDYour Firebase project identifier

Language Configuration

FieldDescription
Default LanguageSelect the default language for content display

Theme Configuration

FieldDescription
ThemeSelect Light or Dark mode for components
Primary Color ShadesCustomize each of the 10 primary color shades (50-900) for different UI elements

Leads Options

FieldDescription
Form PositionWhere the leads form appears (Before or After content)
Available Lead FieldsSelect which form fields are enabled by default
Campaign IDDefault campaign ID for leads collection
Campaign NameDefault campaign name for leads collection

Fans United Mini Games Plugin

The Mini Games plugin adds the ability to embed interactive sports content on your site.

Configuration

After activating the Mini Games plugin, navigate to Settings > Fans United Mini Games to configure:

FieldDescription
Classic Quiz URLURL pattern for quiz content pages, using {CONTENT_ID} as a placeholder
Poll URLURL pattern for poll content pages, using {CONTENT_ID} as a placeholder
Either-Or URLURL pattern for Either-Or game pages, using {CONTENT_ID} as a placeholder
Match Quiz URLURL pattern for Match Quiz pages, using {CONTENT_ID} as a placeholder

Content Types

The plugin supports several types of interactive content:

  1. Classic Quiz - Multiple-choice quizzes with questions and answers
  2. Either/Or - Games where users choose between two options
  3. Poll - Opinion polls where users can vote on options
  4. List - Curated lists of content

Shortcodes

The plugin provides shortcodes for embedding content:

Classic Quiz

[classic-quiz content-id="QUIZ_ID" lead_fields="email,fullName" lead_position="before" campaign_id="CAMPAIGN_ID" campaign_name="CAMPAIGN_NAME"]

Classic Quiz Preview

[classic-quiz-preview content-id="QUIZ_ID" url="https://example.com/quiz-page"]

Either/Or Game

[either-or content-id="EITHEROR_ID" lead_fields="email,fullName" lead_position="before" campaign_id="CAMPAIGN_ID" campaign_name="CAMPAIGN_NAME"]

Either/Or Preview

[either-or-preview content-id="EITHEROR_ID" url="https://example.com/game-page"]

Poll

[poll content-id="POLL_ID" lead_fields="email,fullName" lead_position="before" campaign_id="CAMPAIGN_ID" campaign_name="CAMPAIGN_NAME"]

List

[list content-id="LIST_ID"]

Shortcode Parameters

ParameterDescription
content-idThe ID of the content to display (required)
lead_fieldsComma-separated list of lead form fields to display
lead_positionPosition of the lead form (before or after)
campaign_idCampaign ID for lead attribution
campaign_nameCampaign name for lead attribution
urlFor preview modes, the URL to navigate to when clicking the preview

Lead Collection Fields

The following lead collection fields are supported:

FieldDescription
fullNameUser's full name
firstNameUser's first name
lastNameUser's last name
emailUser's email address
genderUser's gender
countryUser's country
phoneCountryCodeUser's phone country code
phoneNumberUser's phone number

Troubleshooting

Common Issues

  1. Content not loading: Verify your API credentials in the Core plugin settings
  2. Missing content: Check that you're using the correct content IDs
  3. Style conflicts: Content is displayed in an iframe to prevent theme conflicts

Debug Mode

For advanced troubleshooting, add the following to your wp-config.php:

define('FANS_UNITED_DEBUG', true);

Technical Notes

  • The Fans United Core plugin handles authentication and SDK initialization
  • Content is fetched from the Fans United API when the page loads
  • The plugins use the Fans United SDK (version 1.88.0+) from the CDN
  • Firebase is used for authentication (when configured)
  • React components handle the content rendering

Support

For additional support, please contact your Fans United account manager or visit the Fans United documentation portal.


What’s Next

See the supported blocks in WordPress