⚡️ Demo: Event-Level Conversion Measurement API

Before you run this demo

Read this ⤵️! The demo only works once you've gone through these setup steps ⤵️⤵️⤵️
  1. Make sure you're in Chrome, version 86 or later. You can check what version of Chrome you're using by typing chrome://version in the URL bar.
  2. Deactivate ad-blocking extensions on the demo pages. Some ad blocking browser extensions may block some of this demo's functionality.
  3. Don't use an Incognito or Guest profile.
  4. Turn on the two flags #conversion-measurement-api and #enable-experimental-web-platform-features. Go to flags by typing or pasting chrome://flags in Chrome's URL bar.
  5. Disable third-party cookie blocking. In the long term, dedicated browser settings will be available to allow/block the API. Until then, third-party cookie blocking is used as the signal that users don't want to share data about their conversions—and hence that this API should be disabled.
  6. If you're running the demo locally (127.0.0.1), follow these additional instructions.

Run the demo

Open these in new tabs:And follow the steps indicated on each page. Demo screencast:

See the code

Code for this demo

Learn more

Ask questions / Share feedback

👋 Ping @maudnals for feedback / questions about this demo.