Spot Configurations

In This Article

For flexibility, we provide you with the option to configure your Spot directly in the code—instead of using our Admin Dashboard.


Code example

<script type="text/javascript">
var spotimOptions = {
    spotId: "SPOT_ID",
    options: {
        direction: "ltr",
        brandColor: "#307FE2"

;!function(t,e,n){function a(t){var a=e.createElement("script");a.type="text/javascript",a.async=!1,a.src=("https:"===e.location.protocol?"https":"http")+":"+n,(t||e.body||e.head).appendChild(a)}function o(){var t=e.getElementsByTagName("script"),n=t[t.length-1];return n.parentNode} var p=o();t.parentElement=p,a(p)}(window.SPOTIM=spotimOptions,document,"//");


The parameters in the table below are used in throughout the code given in the example above.

ParameterDefault ValueDescription
spotIdemptyThis is your Spot ID. For convenience, you can find this by clicking Wordpress in the dropdown of the Setup tab in your Spot.IM account Settings.
spotNamenullYour Spot Name.
brandColor#307FE2Modify this value to change the brand color of your Spot.
mainLanguageenModify this value to change the main language of your Spot.
directionltrModify this value to change the direction of Spot.IM components.
openModeAUTOMATIC (default), PERMANENT, ON_CLICKModify this value to change the Newsfeed component opening state.
newsfeedPositionright (default), leftModify this value to change the Newsfeed component aside position.
tickerSkinbrand (default), whiteModify this value to change the Ticker color.
inpageSkinlight (default), darkModify this value to change the Inpage color scheme, in which you can aim for a better match between light and dark background colors of the website.
conversationSortbest (default), newest, oldestModify this value to change the replies order. The default order specifies that the best, newest, oldest replies.
policy:forceRegisterfalseSetting this value to true will force users to register before they could reply to conversation.
pcatruePost comment action (PCA) element provides registration steps such as username, photo, or email. Appears after user submits a comment.
enableRecommendationtrue“Popular conversations” element find it above conversation component. Displays the most engaging user-generated content and website content.
enableMiniNewsfeedtrueFloating Community Recirculator element displays dynamic content suggestions to mobile users.
newsfeedtrueSummarizes the discussions on the website. Each item contains the best user-generated content and website content. Find it along the side of the web page.
registration_ctatrueRegistration element includes options for social network and email.
recommendations_on_footerfalseMove “Popular conversations” element found above conversation component below the conversation component
numberedAvatarsfalseUser avatars will become comment counter.
displayNameInSayControlForGuestsfalseUser ability to pick his own display name inside the Say control component before leaving a comment in the first time.
connectTypes['facebook', 'twitter', 'google', 'email']Registration methods to Spot.IM, leave only the ones you will use and remove the rest.