My event source is always unknown.

  • 24 February 2023
  • 4 replies
  • 169 views

I used @amplitude/marketing-analytics-browser@0.4.0 for tracking my events.

When I track my event, the Source of event is always “unknown”.

I set Browser SDK Source and I followed the initialization guide faithfully.

I set the API_KEY with the key inside the Browser SDK Source page.

 

I don't know why Source is in unknown state. Is there something wrong with my settings?


4 replies

Userlevel 6
Badge +9

Thanks for reporting this @Jeff Forwarding this to the team to investigate further.

Userlevel 3
Badge +2

@Amplitude Admin 

We’ve got the exact same issue and I found this via a google search :)

We’re seeing this on various events:

 

In our case we are just using the browser SDK.

Userlevel 6
Badge +9

Thanks for confirming @trevin-bc

Userlevel 3
Badge +2

The solution for this is to make sure you set the plan.source property for events. As soon as we did this it solved the issue. 
 

https://www.docs.developers.amplitude.com/data/sdks/typescript-browser/#configuration

I have no idea why this is the case and why the generated install code does not add the attribution source. 

Reply