WordPress.org

Making WordPress.org

Opened 8 months ago

Closed 4 months ago

#3946 closed enhancement (fixed)

Redirect fbclid requests to 'clean' URLs

Reported by: jonoaldersonwp Owned by: 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 8 months 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.


8 months ago

#2 in reply to: ↑ description @jonoaldersonwp
8 months 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
8 months 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.


8 months ago

#4 @jonoaldersonwp
6 months ago

  • Keywords seo added

#5 @dd32
4 months 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.