Customization

Customization

Country specific offers

Your account api-key comes with a limited list of allowed countries. The widget detects the country where your visitors are coming from and shows offers relevant to that country. In case a visitor is located in a country that is not enabled for your api-key the widget will show offers from a default country. The default country is chosen when the api-key is generated and it is changeable at any point. If you want to set a different country as default, please contact us at partner-support@justwatch.com.

Language settings

The widget automatically detects the language set in the browser of the user and translates the Monetization Type (buy, rent, etc.). If you prefer the widget to always show one language independently from the user who visits your page, you can add the data-language attribute to the widget code.

Example:

<div data-jw-widget
    data-api-key="insert your unique API key. Leave the quotes"
    data-url-path="/us/soccer/uefa-champions-league"
    data-language="de"
></div>

Theme

The widget comes with two theme options “light” and “dark”. These options are meant to be used on websites with lighter or darker backgrounds respectively. Use them to improve the visibility of the provider icons on your website. The attribute name is data-theme and the allowed values are “light” or “dark”.

Example:

<div data-jw-widget
    data-api-key="insert your unique API key. Leave the quotes"
    data-url-path="/us/soccer/uefa-champions-league"
    data-theme="dark"
></div>

Adjusting the widget size

The widget can be scaled down or up in size by choosing a factor between 0 and 1. The default size of the widget is 1, the factor will decrease/increase the widget proportionally. The attribute to scale the widget is data-scale.

Example:

<div data-jw-widget
    data-api-key="insert your unique API key. Leave the quotes"
    data-url-path="/us/soccer/uefa-champions-league"
    data-scale="0.4"
></div>

Display behavior for Ended competitions

Once the competition that is configured in the widget has ended, the widget’s display settings are automatically updated.

Message Display

Upon the conclusion of the competition, the widget displays a notification. This message confirms that the current season of the competition has ended.

Highlights and Streaming Options

In addition to the end-of-season message, the widget provides a recap of the competition. It showcases highlights from the final week’s matches and offers streaming options for users to view these highlights.

How it will look:

Display_for_Ended_Competition