Skip to main content
Contributor I
November 3, 2022
Solved

Can't call api for Added to Cart event for my react.js project.

  • November 3, 2022
  • 2 replies
  • 105 views

Hi, 

I am trying to trigger Added to Cart event in my React.js project. For some reason, I could not able to trigger. I am confused in the file structure for the script code. 

It would be great if someone would help.

    This topic has been closed for replies.
    Best answer by Brian Turcotte

    Hi @harry2012 and welcome to the Community!

     

    Would you be willing to share your existing code?

     

    I think it could help myself and the rest of the community understand the issue/context better if you could provide an example code that you're using. This way we can see if anyone can spot a glaring issue.

     

    Looking forward to continuing this discussion, and thanks for using the Community!

     

    -Brian

    2 replies

    Brian Turcotte
    Klaviyo Alum
    November 3, 2022

    Hi @harry2012 and welcome to the Community!

     

    Would you be willing to share your existing code?

     

    I think it could help myself and the rest of the community understand the issue/context better if you could provide an example code that you're using. This way we can see if anyone can spot a glaring issue.

     

    Looking forward to continuing this discussion, and thanks for using the Community!

     

    -Brian

    softwaredeveloper
    Contributor I
    Contributor I
    July 19, 2023

    hi @harry2012 
    I go through your query, can you explain in more details or share your code so I can give my suggestion.

    because, if you faced trouble in the triggering the "Added to Cart" event in your React.js project, it's important to ensure that your code is properly structured and implemented.

    So kindly share your code so we can solve it together.