Closed Bug 1200659 Opened 10 years ago Closed 10 years ago

Apply utm parameters to HTML in shortlinks

Categories

(developer.mozilla.org Graveyard :: General, enhancement)

All
Other
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hoosteeno, Unassigned, Mentored)

References

Details

(Keywords: in-triage, Whiteboard: [specification][type:feature])

Bitly has turned on a flag that will allow parameters on a shortlink to pass directly through to MDN. That means we can store one short link for every article, and then at page render time we can add utm parameters to the link. Example: * if mzl.la/lorem_ipsum is a shortlink to developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array * then mzl.la/lorem_ipsum?utm_source=hoosteeno.com is a shortlink to developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array?utm_source=hoosteeno.com So this bug is about adding UTM parameters[0] to the shortlinks we get from the database at page render time. [0] :groovecoder specifies them here: https://github.com/mozilla/kuma/pull/3119/files#r26587464. They are "utm_campaign=share&utm_source=[twitter.com|facebook.com|plus.google.com]&utm_medium=doc_widget"
Depends on: 1182210
Severity: normal → enhancement
Keywords: in-triage
We need these UTM parameters, but we should apply them to long links (ref: https://bugzilla.mozilla.org/show_bug.cgi?id=875062#c53). This is already built in current versions of the code (https://github.com/mozilla/kuma/blob/master/kuma/wiki/templates/wiki/includes/document_macros.html#L90-L92). Closing this bug.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.