Skip to main content
Solved

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


Forum|alt.badge.img+2

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.

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

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • 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
Forum|alt.badge.img

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.