Skip to main content

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?

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


@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.


Thanks for confirming @trevin-bc


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