Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
Using onclick in AMP

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]
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!