Bet Tracker Implementation Guide
Implementation Guide
If you're interested in learning more about our widgets, please contact us for a custom quote.
Get Access
Contact sales to get started ‒ they'll get you on the right path for getting the Bet Tracker up and running!
What we'll need:
- The domain name(s) you would like to use our widgets on (these will be whitelisted). You can add any number of domains, contact sales to add more.
- Your API keys from SharpSports. Please see below for more information
Register With SharpSports
Once you have widget access, head over to SharpSports and create an account there. Then once you have logged in to your SharpSports account, go to the Settings section and grab your API keys. Please take note of which one is the Private and Public key.
Note: We only need your API keys from SharpSports. No other configuration is required on their site.
Configure Your API Keys
Next you'll want to configure your API keys. Scroll down to the Bet Tracker widget and click 'Configure'. You will see configuration values for the Private and Public key. Please place the correct keys here and click save.
We need these to be able to link bettor accounts to the widget, so if these are incorrect, or your don't have them, the widget will not work!
Build Your Widget
Once your API keys are configured, you're ready to start building the widget! From the widget dashboard, click the Builder link under the Bet Tracker Widget. If the builder link is not available contact sales and they can configure it for you.
Please see Developer Notes below for different states of the widget!
Use the Widget!
Once you've built the snippet for your widget using the widget builder page, simply add this javascript reference to your site and place the widget wherever you'd like it to display!
JavaScript Reference (required)
<script src="https://sportsdata.io/assets/widgets/js/widgets.js" type="text/javascript"></script>
Example Widget Snippet
<fdw-bet-tracker client="{YOUR CLIENT ID}" user-id="{INTERNAL USER ID}"></fdw-bet-tracker>
Note: the client parameter will automatically be set by the widget builder page and the league will be dependent on which leagues sales has configured for you.
All Done
Congratulations! You're all set to start using widgets. Feel free to contact support if you run into any issues and we hope you enjoy using our widgets!