Solved

What is the best way to test if an event is being emitted to Amplitude?

  • 10 April 2022
  • 2 replies
  • 45 views

Userlevel 1
Badge
  • Conversationalist
  • 6 replies

I’m currently implementing Amplitude into my project using the Ampli CLI and have gotten to a point where everything should be set up and ready to emit metrics. However, when I called one of the methods to emit a metric I don’t see any data on the Amplitude Data site for my project.

 

For example, if I have a metric called “Page Viewed” and in my code I run the method ampli.pageViewed(params), after running that method I check on the Amplitude Data website and see that nothing has changed.

 

In addition, when I try to log the event I get the following CORS message if that relates to this problem:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.amplitude.com/. (Reason: CORS request did not succeed). Status code: (null).

 

Any help would be appreciated!

icon

Best answer by gsw1 12 April 2022, 19:11

View original

2 replies

Userlevel 5
Badge +2

Thanks for reaching out here @gsw1. I wanted to make sure that this post is on your radar as it might help. Keep us posted as you make progress! 

 

Userlevel 1
Badge

Thanks for the reply! I was able to figure it out on this thread:
 

 

Reply