You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to use react-optimize on my website. Currently, I'm using GTM, and I read this document( #2 ) to solve my problem, but I don't know the way to add window.gtag = function() { dataLayer.push(arguments) } to my code.
Code for adding GTM:
I tried to add window.gtag = function() { dataLayer.push(arguments) } after the code above, but only variant id=0's case always rendered. I guess my case is similar to the issue below me. Could you explain how to add window.gtag = function() { dataLayer.push(arguments) } to update variant values?
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to use react-optimize on my website. Currently, I'm using GTM, and I read this document( #2 ) to solve my problem, but I don't know the way to add
window.gtag = function() { dataLayer.push(arguments) }
to my code.Code for adding GTM:

I tried to add
window.gtag = function() { dataLayer.push(arguments) }
after the code above, but onlyvariant id=0
's case always rendered. I guess my case is similar to the issue below me. Could you explain how to addwindow.gtag = function() { dataLayer.push(arguments) }
to update variant values?The text was updated successfully, but these errors were encountered: