I have the following which works in HTML:
<a onclick="__tcfapi('displayConsentUi',2, function() {});">Manage Privacy Settings</a>
However, this doesn't work in AMP since scripts aren't allowed, which I understand.
I have tried using the following but it's not working either:
<amp-script layout="container" script="manage" class="amp-my-custom-script-menu">
<li><button on="tap:manage">Manage Privacy Settings</button></li>
</amp-script>
<script id="manage" type="text/plain" target="amp-script">
__tcfapi('displayConsentUi',2, function() {});
</script>
It's not working and I'm getting an error in the console:
[Action] Target "manage" not found for action [tap:manage]