Multiple Videos - Serve A Different One Each Visit

Hello! I’m new to Webflow and had a question about running video through the system. Basically we want our Homepage to feel fresh each time someone arrives on the website. We have 4 different 30 second videos and we’d like to serve the user a different video each time they come to the Homepage. I’ve done it on a WordPress site in the past using cookies. Does anyone know if that’s possible in Webflow? Thanks!

Hi @jrube9 you can achieve it with custom code. store url’s in variables array and run random on page load.


Use cookie

  • store the visit number.
  • read cookie
  • Show or hyde video container based on cookie data.

Quite simple Javascript

Thanks! Is there any reason to think this concept will slow down the page load time?

Very helpful. Thanks so much!

1 Like