This article is for AMP Theme Framework users.
GDPR Component is for adding GDPR compliancy in your AMP theme.
How to use:
Following are the steps to use this GDPR component.
Step 1:
Just add the following code to the functions.php of the theme files.
//GDPR Compliancy add_amp_theme_support('AMP-gdpr');
This was the back-end part where we’ve just initiated, now to make it appear in the front-end follow the next step.
Step 2:
To add the GDPR we need to call it.
example: It is recommended to add it in footer.php to make it run on the whole site.
<?php amp_gdpr(); ?>
with this, you’re successfully able to add GDPR compliancy.
That’s it for this tutorial!
We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.