WordPress.org

Making WordPress.org

Opened 3 months ago

Last modified 4 weeks ago

#3946 new enhancement

Redirect fbclid requests to 'clean' URLs

Reported by: jonoaldersonwp Owned by:
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 3 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 (5)

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


3 months ago

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


3 months ago

#4 @jonoaldersonwp
4 weeks ago

  • Keywords seo added
Note: See TracTickets for help on using tickets.