This message was deleted.
# give-feedback
w
This message was deleted.
f
Thanks for the feedback. We're working on improvements to this script soon and will make sure to include an easier way to provide a callback.
🙌 1
f
@future-teacher-7046 - I also found a bug in the GTM datalayer push for this script. It pushes an array, not an object with the event name defined:
Copy code
window.dataLayer.push(["event", "experiment_viewed", n]),
A valid event push would be like so:
Copy code
window.dataLayer.push({
    'event': 'experiment_viewed',
    'experiment_id': experiment.key,
    'variation_id': result.key
  });
Cheers Rob
p
As i encountered the same issue: see this thread https://growthbookusers.slack.com/archives/C01T6Q1SVFV/p1712839855877889 for explanation as to why that's going in as an array and the workaround involving doing data layer push yourself
138 Views