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.
Just add the following code to the functions.php of the theme files.
This was the back-end part where we’ve just initiated, now to make it appear in the front-end follow the next step.
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.