document.documentElement.setAttribute('data-useragent', navigator.userAgent); document.documentElement.setAttribute('data-iframe', !!window.frameElement); if (window.frameElement) { var parentUrl = window.parent.location.pathname; var urlContainsQueryParams = window.location.href.match(/\?/); var queryString = (urlContainsQueryParams ? '&' : '?') + "parent=" + encodeURI(parentUrl); var newUrl = window.location.href + queryString; window.history.replaceState(null, null, newUrl); }

Global Citizen is a community of people like you

People who want to learn about and take action on the world’s biggest challenges. Extreme poverty ends with you.

Take Action

Global Issues