In the JS you can run this call to get an object returned with info such as current campaign, the state of the portal or a campaign etc. you can narrow it down to specific fields in the object by using a call this like: 

Did this answer your question?