GoDAM can hold its analytics until a visitor agrees to statistics cookies. Sites without a consent banner are not affected.
1. With a Consent Banner That Supports the WP Consent API
- Install and activate the WP Consent API plugin.
- 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 visitor | What GoDAM does |
|---|---|
| Has not chosen yet | Stores nothing in the browser and sends nothing. Views, plays and layer clicks wait on the page |
| Accepts | Sends what was waiting, then tracks as usual, with no page reload |
| Rejects | Discards what was waiting. Nothing is stored or sent |
| Withdraws consent later | Stops 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.
2. With a Banner That Does Not Support the WP Consent API
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.
