Generate Account / Project Access Tokens.

Go to GitLab profile > Preferences > Access Tokens.

Click create token.

Required permission scopes:

Go to Confluence General Configuration > Click Configure ILA DevOps.

Go to page edit Insert Macro > Gitlab to confluence.

Here is the project ID were we can find.