Skip to content

Variant value is not updated. #225

@ssohymind

Description

@ssohymind

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:
스크린샷 2020-11-06 오후 5 42 24

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions