All jobs / Frontend / web developer / Security

Frontend / web developer interview question · 5+ years

Legal says marketing pixels cannot run before consent. How do you architect the frontend?

The strongest answer

A CMP gate: load tags only after purpose consent, honor region and withdrawal, and set no marketing cookies before that

Why it works

Consent is a load-order problem. Pixels are code; they do not run until the purpose is granted.

What a good answer covers

Answers that fall short

Who gets asked this

More Security questions