Skip to content

Add 'utm' parameters to the Source code submission links #8460

Closed

Activity

  1. caitmuenster commented on Sep 13, 2021

    @caitmuenster

    If this is your first contribution, please refer to https://wiki.mozilla.org/Add-ons/Contribute/Code on how to get started.

    Mentor: @eviljeff

  2. leni1 commented on Sep 17, 2021

    @leni1

    Hello all. I would like to work on this if that's okay.

  3. caitmuenster commented on Sep 17, 2021

    @caitmuenster

    Hey @leni1, welcome! 🙌 Go for it. We'll assign you to the issue once you submit a PR (draft PRs are fine!).

  4. added this to the 2021.09.23 milestone on Sep 20, 2021
  5. AlexandraMoga commented on Sep 21, 2021

    @AlexandraMoga
    Author

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

    1. https://addons-dev.allizom.org/en-US/developers/addon/{addon}/submit/source-listed
      image
      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=submission do 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, the utm's are not preserved - i.e. the destination link will be https://extensionworkshop-dev.allizom.org/documentation/publish/source-code-submission/

    2. https://addons-dev.allizom.org/en-US/developers/addon/{addon}/submit/details
      image
      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.

  6. eviljeff commented on Sep 21, 2021

    @eviljeff
    Member

    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

  7. leni1 commented on Sep 22, 2021

    @leni1

    @eviljeff sure. Happy to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions