The TripAdvisor Widget consists of two cookie-setting elements:
1. An image
2. A script
To prevent each element from setting cookies prior to the users consent, we have to mark up the elements.
Below, the img tag is marked up with the data-src attribute, rather than src.
Normally it is sufficient to mark up a script tag with
We have placed additional <div> placeholders, to give the users ability to change their consent, in order to view the Widget. You can style this however you like.