Macro Configurations
Overview
Macros are used as dimensions in the Fize Reporting dashboard. So, if a client wants any data to be part of reporting, they can add macros while using Fize SDK.
There two different types of macros:
<html lang="en">
<head>
<script src="https://cdn.getfize.com/sdk/v1.0/getfize.js"></script>
</head>
<body>
<button id="launchFize">Launch Fize</button>
<script>
(function () {
var handler = FIZE.configure({
client_id: "FIZE_PROVIDED_CLIENT_ID",
macro_config: {
fz_name: "John Doe",
fz_email: "[email protected]",
utm_source: "facebook"
}
});
document.getElementById("launchFize").onclick = () => handler.launch();
})();
</script>
</body>
</html>
Updated 7 months ago
What’s Next