I’m trying to install sdk using code
<script src="https://cdn.amplitude.com/script/API_KEY.engagement.js"></script>
which i placed after amplitude main script.
I replaced API_KEY with my project Api key found in projects → general tab.
Unfortunately this scripts always thronws 401 error with ‘Invalid Key.’ response.
Why would that happen? I’m doing it according to this doc - https://amplitude.com/docs/guides-and-surveys/sdk#amplitude-browser-sdk