Wait for Cookie Consent

GoDAM for WordPress v2.8.0 Updated: 2026-11-10

GoDAM can hold its analytics until a visitor agrees to statistics cookies. Sites without a consent banner are not affected.

  1. Install and activate the WP Consent API plugin.
  2. Use a consent banner that reports through it, such as Complianz, Cookiebot, CookieYes or iubenda.

That is all. GoDAM then waits for the visitor’s statistics consent:

The visitorWhat GoDAM does
Has not chosen yetStores nothing in the browser and sends nothing. Views, plays and layer clicks wait on the page
AcceptsSends what was waiting, then tracks as usual, with no page reload
RejectsDiscards what was waiting. Nothing is stored or sent
Withdraws consent laterStops tracking and deletes GoDAM’s data in the browser

GoDAM for WooCommerce 2.3.1 and later does the same for product videos, Shoppable Video, Reel Pops and sale credit.

Add this to your theme or a small plugin:

add_filter( 'godam_visitor_tracking_requires_consent', '__return_true' );

Then have the banner call GoDAM when the visitor chooses:

window.GoDAM.setAnalyticsConsent( true );  // the visitor accepts
window.GoDAM.setAnalyticsConsent( false ); // the visitor refuses

3. Turn Visitor Tracking Off

To turn visitor tracking off for everyone:

add_filter( 'godam_visitor_tracking_enabled', '__return_false' );

This makes a consent-based setup possible. Your banner and its settings stay your responsibility.