To include the experiences teaser in your page, you have 2 options. You can generate a teaser on the fly by providing a number of configuration and filtering parameters to the widget; or if Reevoo has provided to you a pre-configured teaser id, you can render that teaser by providing the teaser id to the widget. For more details about these two ways of including a teaser, read the sections
below.

Teaser sketch

Generate a teaser on the fly

As long as the page where you are including the teaser has been setup with the experiences css and javascript as explained in the previous section, you can include the teaser
anywhere in your page by adding the following web component html (with your own custom values for each of the web component attributes):

<reevoo-experiences-teaser
  tags="location1:scotland,general:cycling_tips"
  teaser-title="Walking in Scotland"
  overlay-title="Walking in Scotland"
  trkref='ABC123'
  desktop-layout="desktop-default"
  mobile-layout="mobile-default"
  styles-brand-color="red"
  show-teaser-cards-driver
  show-teaser-cards-text
  show-overlay-cards-driver
  target-url="http://www.abc123.com/scotland/walking"
  driver-purchase-description="Holiday booked" 
></reevoo-experiences-teaser>

Find below a description of each of the attributes in the web component:

Name

Required

Default Value

Description

tags

true

N/A

A comma separated list of tags. The teaser and associated overlay will only display content that has been tagged with all the provided tags. Each tag has to be provided in format namespace:tag_key. Both namespace and tag_key have to be downcased and underscored.

teaser-title

false

N/A

Define a teaser title.

overlay-title

false

We asked real people

Title of the overlay list of cards that opens when the teaser is clicked.

trkref

true

N/A

Here you should use your unique account code, which Reevoo will have provided to you.

desktop-layout

false

desktop-default

Define desktop layout. ex: 1rows-4columns.

mobile-layout

false

mobile-default

Define mobile layout. ex: 1rows-4columns.

styles-brand-color

false

#2fcb59'

This color affects titles, button backgrounds and some links. You can provide any colour name or hex value supported as a CSS colour.

show-teaser-cards-driver

false

N/A

This attribute does not have a value. If the attribute is present, every card in the teaser will display a driver link to the associated product. Otherwise the driver link will not be available.

show-teaser-cards-text

false

N/A

This attribute does not have a value. If the attribute is present, caption text will be hidden on the teaser cards, which will only display user name, location, and image. Otherwise, caption text will be displayed along.

show-overlay-cards-driver

false

N/A

This attribute does not have a value. If the attribute is present, every card in the overlay collection will display a driver link to the associated product. Otherwise the driver link will not be available.

target-url

false

N/A

As default, click on teaser will open overlay collection. But there can be the case where you want to redirect user to specific url. In this case pass the url as a value of target-url attribute.

driver-purchase-description

false

Defined by Reevoo

Overwrite purchase description text on product link. If no value is provided, description is taken from Reevoo configuration, which is different for each client.

Request a specific teaser by its ID

Make sure the page where you are including the teaser has been setup with the experiences css and javascript (see above for details). You can include the teaser
anywhere in your page by adding the following web component html (with your own custom values for each of the web component attributes):

<reevoo-experiences-teaser
  teaser-id="78b18b1b-40b9-4fd3-a085-220658e8760b"
  trkref='ABC123'
  styles-brand-color="red"
  show-teaser-cards-driver
  show-teaser-cards-text
></reevoo-experiences-teaser>

Find below a description of each of the attributes in the web component:

Name

Required

Default Value

Description

teaser-id

true

N/A

The teaser id value will be provided to you by Reevoo.

trkref

true

N/A

Here you should use your unique account code, which Reevoo will have provided to you.

styles-brand-color

false

#2fcb59

This color affects titles, button backgrounds and some links. You can provide any colour name or hex value supported as a CSS colour.

show-teaser-cards-driver

false

N/A

This attribute does not have a value. If the attribute is present, every card in the teaser will display a driver link to the associated product. Otherwise the driver link will not be available.

show-teaser-cards-text

false

N/A

This attribute does not have a value. If the attribute is present, caption text will be hidden on the teaser cards, which will only display user name, location, and image. Otherwise, caption text will be displayed along.

Note: The teaser widget, whether generated on the fly or by id, will not display if there are not enough cards available to fill the chosen layout.

Experiences Embedded

To include experiences embedded in your page, make sure the page has been setup with the experiences css and javascript (see above for details), and then add the following web component html to your page (with your own custom values for each of the web component attributes):

<reevoo-experiences-embedded
  embedded-title="Cycling near Exeter - customer experiences"
  description="Many of our guests have had such a great time cycling near Exeter that they were happy to share some of their cycling experiences with others. Their experiences were independently collected by Reevoo, the company that also collects and displays the reviews on our website."
  tags="location1:england,general:cycling_tips"
  trkref="ABC123"
  pagination
  styles-brand-color="red"
  show-card-driver
  spotlight-action-button-title="VIEW COTTAGE"
  cards-per-page="10"
  driver-purchase-description="Holiday booked" 
></reevoo-experiences-embedded>

Find below a description of each of the attributes in the web component:

Name

Required

Default Value

Description

embedded-title

false

N/A

If a title is provided, it will be displayed at the top of the embedded cards container.

description

false

N/A

If a description is provided, it will be displayed at the top, as a sub-header, in between the embedded container title and the cards.

tags

true

N/A

A comma separated list of tags. The embedded cards container will only display content that has been tagged with all the provided tags. Each tag has to be provided in format namespace:tag_key. Both namespace and tag_key have to be downcased and underscored

trkref

true

N/A

Here you should use your unique account code, which Reevoo will have provided to you.

styles-brand-color

false

#2fcb59

This color affects titles, button backgrounds and some links. You can provide any colour name or hex value supported as a CSS colour.

pagination

false

N/A

This attribute does not have a value. If the attribute is present, the embedded cards container will display classic numbered pagination links by which users can browse the full content. If this attribute is not present, there will be a "More" button at the botton of the container, through which the user can load the next page worth of cards in an infinite scrolling style. Pagination is disabled for mobile devices and replaced by "More" button

show-card-driver<

false

N/A

This attribute does not have a value. If the attribute is present, every card in the embedded container will display a driver link to the associated product. Otherwise the driver link will not be available.

spotlight-action-button-title

false

MORE

When you click on a card in the embedded container, the card will open in spotlight view. The spotlight view includes a button to visit the product page associated to the card. You can use this property to configure the label of the button.

cards-per-page

false

20

Define how many cards will be loaded when user switch the page or click on "More" button

driver-purchase-description

false

Defined by Reevoo

Overwrite purchase description text on product link. If no value is provided, description is taken from Reevoo configuration, which is different for each client.