Desperate help needed for Intercom intergration for logged in users

Hi guys,

I have been trying for 2 days now to implement Intercom into my bubble app. It has to be able to track basic user information - and this is where I get stuck…

I’ve tried inserting a HTML element in, pasting the javascript and adding variables

Where am I going wrong?
The Intercom Plugin with data API call does not work either…

Greatly appreciated in advance - love this platform already!

Put the 2nd part in Setting’s Body Script