Configuration
Generated Code
JSON Init Method
Programmatically initializes the script by calling a global object method with a configuration object.
Programmatically initializes the script by calling a global object method with a configuration object.
<div id="data-gol"></div>
<script src="/embed.js"></script>
<script>
window.addEventListener('load', function() {
const widget = window.DataGOL.init({
elementId: "data-gol",
appId: "aff3d329-b50b-45e7-bc3f-e8f64a85b850",
pageId: "75e4af63-cd5e-4662-a2ed-219b9891a6d0",
baseUrl: "https://testing-be.datagol.ai",
userToken: "USER_TOKEN",
elementType: "BI_PAGE",
filters: [{ name: "job_title", value: "Analyst" }]
});
});
</script>