delightful-jordan-79295
01/31/2025, 11:50 AM<script>
window.growthbook_config = window.growthbook_config || {};
</script>
And the end of <head> tag script:
<script>
window.growthbook_config = {
trackingCallback: function (experiment, result) {
dataLayer.push({
'event': 'experiment_viewed',
'event_category': 'experiment',
'experiment_id': experiment.key,
'variation_id': result.variationId
});
}
};
window.growthbook_queue = window.growthbook_queue || [];
window.growthbook_queue.push((gb) => {
const applyFeatureFlags = () => {
const h1FeatureValue = gb.getFeatureValue("feature-h1", "Invest in Dubai's most attractive rental properties for as little as AED 500");
document.querySelectorAll("h1").forEach((h1) => {
const originalText = h1.textContent;
h1.textContent = h1FeatureValue;
const span = document.createElement('span');
if (h1FeatureValue.includes('attractive rental properties')) {
span.textContent = 'attractive rental properties';
span.style.color = "rgb(65, 206, 142)";
h1.innerHTML = h1.innerHTML.replace('attractive rental properties', span.outerHTML);
}
if (h1FeatureValue.includes('premium rental properties')) {
span.textContent = 'premium rental properties';
span.style.color = "rgb(65, 206, 142)";
h1.innerHTML = h1.innerHTML.replace('premium rental properties', span.outerHTML);
}
});
};
applyFeatureFlags();
document.addEventListener("growthbookdata", applyFeatureFlags);
});
</script>
<script async
data-api-host="<https://cdn.growthbook.io>"
data-client-key="sdk-0crYvL5bKqQKvMSb"
src="<https://cdn.jsdelivr.net/npm/@growthbook/growthbook/dist/bundles/auto.min.js>"
></script>
strong-mouse-55694
01/31/2025, 9:50 PMdelightful-jordan-79295
02/04/2025, 11:59 AMgrowthbook.experiment_viewed
instead of just experiment_viewed
. But now it's saying experiment_id
is missing. Do we need to add experiment_id
and variation id
as well to the fact tables?strong-mouse-55694
02/04/2025, 2:43 PMdelightful-jordan-79295
02/05/2025, 7:58 AMstrong-mouse-55694
02/05/2025, 3:47 PM