Identify addon distribution channel

Hello,
Having a single addon in the addons store, I am looking for a way to figure out the distribution channel.
Meaning if our partner ABC redirected to the addon page, I want my addon to know that it came from ABC and set some variable inside my addon corresponding to this partner.

[edit] This seemed promising https://blog.mozilla.org/addons/2009/11/12/download-source-tracking-now-available-on-amo/ but it doesn’t say if the source can be retrieved from inside the addon.

// Francois

Got a solution.
By the time we install the addon from mozilla addon store, the mozilla tab/window is most likely still open.
Using require(“sdk/tabs”) we are able to read up the URL from the different tabs, find the mozilla addon URL and extract the parameter that we want.

1 Like

Thanks for sharing when you found the solution. It will help someone in the future I’m sure.