Web Player

Carousel

Customize Carousel behavior

Append parameters to video carousel slide click-throughs

You can append parameters to each slide’s click-through link by adding carouselUtmParams to your video carousel embed code. Keys are slide numbers, starting at 1; a slide without a key keeps its link as it is. The value is added to the link as a query string, and any #anchor in the slide’s link is dropped.

Example:

$bp("myDiv", {"id":"PLAYER_ID","width":"480","height":"270","carousel":"CAROUSEL_ID",
	"carouselUtmParams" : {
		"1": "utm_source=....&utm_medium=....&utm_campaign=...",
		"2": "utm_source=....&utm_medium=....&utm_campaign=...",
		"3": "utm_source=....&utm_medium=....&utm_campaign=...",
		"4": "utm_source=....&utm_medium=....&utm_campaign=...",
		"5": "utm_source=....&utm_medium=....&utm_campaign=..."
	}
});

💡 Tip

This is useful for tracking carousel click-throughs in Google Analytics or another analytics tool.

Customize the "Read more" CTA button

Use carouselReadMore in the embed code to style the “Read more” CTA button:

Note: the button appears only when Read more is turned on for the carousel in the CMS. The current carousel layout does not apply the carouselReadMore settings: the button’s background uses the carousel’s Primary color, which you set in the CMS, and its size and font are fixed. To change the button’s text, use translate: {"read_more": "Your text"}.

Example:

$bp("myDiv", {"id":"PLAYER_ID","width":"480","height":"270","carousel":"CAROUSEL_ID",
	"carouselReadMore": {
		"width": "150px",
		"bgColor": "blue",
		"fontColor": "yellow",
		"fontSize": "18px",
		"fontFamily": "monospace",
		"animation": false
	}
});

Param name

Example value

Description

width

150px

Set a custom width for read more button

bgColor

blue

Set a custom background color for the read more button

fontColor

yellow

Set a custom font color for the read more button text

fontSize

18px

Set a custom font size for the read more button text

fontFamily

monospace

Set a custom font for the read more button text

animation

true/false

Enable/disable animation for the read more CTA button


Set video/slides to be clickable when player controls are enabled for carousels

Add the clickablePlayer parameter to your embed code to add support for click-throughs. Valid values are true / false. Default behavior is false.

Example:

$bp("myDiv", {
	"id":"PLAYER_ID",
	"width":"480",
	"height":"270",
	"carousel":"CAROUSEL_ID",
	"clickablePlayer":true
});

Reduce the size of the carousel slide title

If the title of the video is too long, add the carousel_smaller_titles param to use a smaller font, so more of the title fits in the slide. Titles longer than two lines are still shortened with “…”.

Example:

$bp("myDiv", {
	"id":"PLAYER_ID",
	"width":"480",
	"height":"270",
	"carousel":"CAROUSEL_ID",
	"carousel_smaller_titles":true
});
Carousel · TargetVideo Developer Docs