This question is very often asked in support. I give you the code to solve it.
@sandro57 : Simply wrap the button code in the files of your theme with the has_consent( $consent_id ) or is_allowed_cookie( $cookie_name ) hooks.
The code:
<? if( has_consent('social-buttons') ) { ?>
<h4 class="social-title"><?php echo _e('SHARE!', 'mytheme'); ?></h4>
<div class="social-icons">
<ul id="social-share">
<li id="facebook-share"><a href="https://www.facebook.com/sharer/sharer.php?s=100&p[url]=<?php echo urlencode(get_permalink()); ?>" target="_blank"><span><?php echo esc_html__( 'Share on ', 'advigny' ); ?>Facebook</span></a></li><li id="twitter-share"><a href="https://twitter.com/intent/tweet?text=<?php echo urlencode(get_the_title()); ?>+<?php echo get_permalink(); ?>" target="_blank"><span><?php echo esc_html__( 'Share on ', 'advigny' ); ?>Twitter</span></a></li><li id="googleplus-share"><a href="https://plus.google.com/share?url=<?php echo urlencode(get_permalink()); ?>" target="_blank"><span><?php echo esc_html__( 'Share on ', 'advigny' ); ?>Google+</span></a></li>
</ul>
</div>
<? php } ?>
This is for the 3 main social networks. You can customize.
You have to style it in your theme style.css.
You must create a Consent in GDPR admin called “Social Buttons” and set it OFF.
If visitor doesn’t consent, the buttons won’t appear, and no cookies will be loaded.
Regards.