Save attribution codes in extension storage when running in non-dev mode, using first AMO/CWS URL present in tabs when the extension calls the Rally constructor for the first time.
Not asking for review on this yet, I'm asking in #addons on Matrix if this should work and/or if there are any alternatives, if this is the best/only path forward then I'll figure out how to add tests.
Save attribution codes in extension storage when running in non-dev mode, using first AMO/CWS URL present in tabs when the extension calls the Rally constructor for the first time.
Right now this code assumes that the store URL contains a slug matching the
studyId
, but hyphen-case instead of camelCase. For instance,studyId
offacebookPixelHunt
would have a CWS URL of https://chrome.google.com/webstore/detail/facebook-pixel-hunt and an AMO URL of https://addons.mozilla.org/addon/facebook-pixel-hunt/Not asking for review on this yet, I'm asking in #addons on Matrix if this should work and/or if there are any alternatives, if this is the best/only path forward then I'll figure out how to add tests.