Configure B2COPY widgets
Last updated
Was this helpful?
Last updated
Was this helpful?
This document describes how to embed the Leaderboard and Account Statistics widgets on your website.
Clients can find a list of top-performing master accounts in the Leaderboard widget displayed on your website. In the widget, they click a selected account to view the account trading information in the Account Statistics widget. If a client is satisfied with the trading results of the selected account and wants to subscribe to that account, the client clicks the +Follow button and is redirected to the Web UI Sign In page or any other landing page to which you want your client to be navigated.
The widgets are embedded in a web page using the HTML <iframe> element.
In addition to <iframe>, the scripts provided in the examples below are required to ensure proper interaction between both widgets. The scripts must also be added to the web pages in which the <iframe> elements containing the widgets are embedded.
The following code should be inserted in the <head> element of a web page:
where:
ACCOUNT_STATISTICS_LANDING_URL
— the address of a page containing the Account Statistics widget.
If you have only one platform configured, the identifier of your platform is 1.
PLATFORM
— the type of platform. Possible values:
b2copy
— for copy trading
mam
— for MAM
pamm
— for PAMM
The following code should be inserted in the <body> element of a web page:
where:
https://example.com/leaderboard
— must be replaced with the address of a web page containing the Leaderboard widget.
The following code should be inserted in the <head> element of a web page:
where:
ACCOUNT_STATISTICS_WIDGET_CDN_URL
— the address of a web page containing the Account Statistics widget.
ACCOUNT_STATISTICS_WIDGET_FOLLOW_LINK
— the address of a web page that is opened after clicking the Follow button.
If you have only one platform configured, the identifier of your platform is 1.
PLATFORM
— the type of platform. Possible values:
b2copy
— for copy trading
mam
— for MAM
pamm
— for PAMM
The following code should be inserted in the <body> element of a web page:
where:
https://statistics.example.com
— must be replaced with the address of a web page containing the Account Statistics widget.
In the Back Office, go to Investment Platform > Platform Manager.
Click the Edit button located in the desired platform row.
The INVESTMENT_PLATFORM_ID
is the last number of the platform URL (in the example below, INVESTMENT_PLATFORM_ID is 11).
INVESTMENT_PLATFORM_ID
— the identifier of the investment platform instance (such as for MT4, MT5, and so on). For details, refer to .
INVESTMENT_PLATFORM_ID
— the identifier of the investment platform instance (such as for MT4, MT5, and so on). For details, refer to .