App reviews, troubleshooting, and recommendations
Dear Community
I am trying to set-up and experiment using Growthbook and capturing events using Rudderstack.
Have added a custom event in theme-liquid.
Based on this https://docs.growthbook.io/lib/script-tag
However the custom events is not captured.
<script>
window.growthbook_config = window.growthbook_config || {};
window.growthbook_config.trackingCallback = (experiment, result) => {
window.rudderanalytics.track("Viewed Experiment", {
experiment_id: experiment.key,
variation_id: result.key
})
};
</script>
The error is that the object rudderanalytics is not defined at time of invocation of the call.
Which javascript file should this code snippet live?
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025