You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add 'utm' parameters to the Source code submission links #8460
@eviljeff there are some issues with this patch. As far as I've noticed, the submission flow features the source code submission link in two locations:
So, what's happened here is both Leni and I have taken the url specified literally; searched for it; and found there is only one place that is currently written as https://extensionworkshop.com/documentation/publish/source-code-submission/, and that's in describe_minimal.html. Used for new add-ons with an unlisted version (and subsequent listed versions when all the metadata was defined during the first listed version submission)
But almost the same url is also defined for:
describe.html - that's your 2. - where it's written as https://extensionworkshop.com/documentation/publish/source-code-submission - note the lack of trailing slash. (Used for new add-on submissions with a listed version)
source.html - that's your 1. - where it's written as 'href="%s/documentation/publish/source-code-submission?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=submission" target="_blank" rel="noopener noreferrer"'|format(settings.EXTENSION_WORKSHOP_URL). This already has the utm params, but have been added without the slash, so they get lost. Also utm_content=submission rather than utm_content=submission-flow as you noted.
source_form_field - where it's written as {{ settings.EXTENSION_WORKSHOP_URL }}/documentation/publish/source-code-submission/?utm_source=addons.mozilla.org&utm_medium=devhub&utm_content=submission-flow". This one is correct because it has the utm params and the trailing slash 🎉
@leni1 would you be able to create another pull request that fixes the two other urls that @AlexandraMoga highlighted? (describe.html and source.html)
All the urls need (the same) utm params, and a trailing slash to be correctly interpreted by extensionworkshop.com
Activity
caitmuenster commentedon Sep 13, 2021
If this is your first contribution, please refer to https://wiki.mozilla.org/Add-ons/Contribute/Code on how to get started.
Mentor: @eviljeff
leni1 commentedon Sep 17, 2021
Hello all. I would like to work on this if that's okay.
caitmuenster commentedon Sep 17, 2021
Hey @leni1, welcome! 🙌 Go for it. We'll assign you to the issue once you submit a PR (draft PRs are fine!).
AlexandraMoga commentedon Sep 21, 2021
@eviljeff there are some issues with this patch. As far as I've noticed, the submission flow features the source code submission link in two locations:
https://addons-dev.allizom.org/en-US/developers/addon/{addon}/submit/source-listed

In this location, the "Source Code Submission" link points to https://extensionworkshop-dev.allizom.org/documentation/publish/source-code-submission?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=submission, but this was already done in Update copy for submission flow #8476.
Secondly, the current
utm's -utm_source=addons.mozilla.org&utm_medium=referral&utm_content=submissiondo not match what was initially proposed -utm_source=addons.mozilla.org&utm_medium=devhub&utm_content=submission-flow. Maybe @caitmuenster can comment on that.Lastly, even if the
utm's are present in our link, once you click on the link to open the Extension workshop page, theutm's are not preserved - i.e. the destination link will be https://extensionworkshop-dev.allizom.org/documentation/publish/source-code-submission/https://addons-dev.allizom.org/en-US/developers/addon/{addon}/submit/details

This is the second location where the link is featured and, according to the PR changes, this seems to be the place where the updates were made. However, I can't see any
utm's in this link in DevHub.eviljeff commentedon Sep 21, 2021
So, what's happened here is both Leni and I have taken the url specified literally; searched for it; and found there is only one place that is currently written as
https://extensionworkshop.com/documentation/publish/source-code-submission/, and that's indescribe_minimal.html. Used for new add-ons with an unlisted version (and subsequent listed versions when all the metadata was defined during the first listed version submission)But almost the same url is also defined for:
https://extensionworkshop.com/documentation/publish/source-code-submission- note the lack of trailing slash. (Used for new add-on submissions with a listed version)'href="%s/documentation/publish/source-code-submission?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=submission" target="_blank" rel="noopener noreferrer"'|format(settings.EXTENSION_WORKSHOP_URL). This already has the utm params, but have been added without the slash, so they get lost. Alsoutm_content=submissionrather thanutm_content=submission-flowas you noted.{{ settings.EXTENSION_WORKSHOP_URL }}/documentation/publish/source-code-submission/?utm_source=addons.mozilla.org&utm_medium=devhub&utm_content=submission-flow". This one is correct because it has the utm params and the trailing slash 🎉@leni1 would you be able to create another pull request that fixes the two other urls that @AlexandraMoga highlighted? (describe.html and source.html)
All the urls need (the same) utm params, and a trailing slash to be correctly interpreted by extensionworkshop.com
leni1 commentedon Sep 22, 2021
@eviljeff sure. Happy to do this.
AlexandraMoga commentedon Sep 30, 2021
I've reverified the source code submission links to Extensionworkshop and now we have:
for https://addons.allizom.org/en-US/developers/addon/{addon}/submit/source-listed:

https://extensionworkshop.allizom.org/documentation/publish/source-code-submission/?utm_source=addons.mozilla.org&utm_medium=devhub&utm_content=submission-flow => the
utm's are preserved once the transition to EW is madehttps://addons.allizom.org/en-US/developers/addon/{addon}/submit/details

https://extensionworkshop.com/documentation/publish/source-code-submission/?utm_source=addons.mozilla.org&utm_medium=devhub&utm_content=submission-flow => the
utm's are preserved once the transition to EW is madeThis issue is verified fixed on stage.