Making WordPress.org

Opened 6 years ago

Closed 6 years ago

#3946 closed enhancement (fixed)

Redirect fbclid requests to 'clean' URLs

Reported by: jonoaldersonwp's profile jonoaldersonwp Owned by: dd32's profile dd32
Milestone: Priority: normal
Component: General Keywords: seo
Cc:

Description

Facebook recently added a tracking parameter to all outbound URLs. That means that, anybody who clicks to a wordpress.org URL from Facebook hits a URL which appends ?fbclid=xxxxx.

This is cache-busting, and also causes issues with our SEO + Analytics. If we're not actively using fbclid to measure Facebook marketing/conversion campaigns, then we should remove this parameter.

Specifically, we should redirect any request which contains this parameter to an equivalent request, replacing the parameter with #utm_medium=referral&utm_source=facebook.com&utm_content=social.

e.g., https://wordpress.org/download/?fbclid=12345-abcde should redirect to https://wordpress.org/download/#utm_medium=referral&utm_source=facebook.com&utm_content=social.

Attachments (1)

3946.diff (1.1 KB) - added by dd32 6 years ago.
Something that will probably work, but needs some extra conditionals put on it, etc. redirect_canonical() doesn't have any useful filters for this scenario.

Download all attachments as: .zip

Change History (6)

This ticket was mentioned in Slack in #meta by joostdevalk. View the logs.


6 years ago

#2 in reply to: ↑ description @jonoaldersonwp
6 years ago

Twitter does a similar thing when AMP formatted content is viewed through their apps/ecosystem. It appends ?__twitter_impression=true to the end of the URL.

We should redirect requests like this to #utm_medium=referral&utm_source=twitter.com&utm_content=social

@dd32
6 years ago

Something that will probably work, but needs some extra conditionals put on it, etc. redirect_canonical() doesn't have any useful filters for this scenario.

This ticket was mentioned in Slack in #meta by joostdevalk. View the logs.


6 years ago

#4 @jonoaldersonwp
6 years ago

  • Keywords seo added

#5 @dd32
6 years ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 8399:

WordPress.org: Canonical: Redirect Facebook and Twitter tracking parameters to UTM fragments.

Fixes #3946.

Note: See TracTickets for help on using tickets.