• Resolved fuchsws

    (@fuchsws)


    Does anybody know how to handle URL/Domain changes?

    For example, we would like to change our website from http to https or even change to another domain. but that will brake all social metrics as the requested URL changes.

    how not to loose social metrics of the old URL? In theory the plugin would need to know the old URL and “simply” make multiple api requests and add up the counts. For Example:

    Old URL: http://www.domain.com/path/to/article/
    New URL: https://www.domain.de/path/to/article/

    The plugin would need to get metrics for both old and new URLs and add counts up.

    This is simple with search engines – simply make 301 redirects and wait a few weeks to update their index. but how to “redirect” social metrics?

    https://wordpress.org/plugins/social-metrics-tracker/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ben Cole

    (@bcole808)

    I’ve been trying to think of a good solution to this for a while. I am also planning to switch one of the sites I work on from HTTP and HTTPS and this issue has delayed the switch for me. I hadn’t thought of domain switches yet, but that is a good point to consider as well.

    I wrote up an overview with a proposed solution and will start working on it. If you’d like to take a look, head over to this page:

    https://github.com/chapmanu/wp-social-metrics-tracker/issues/45

    Thread Starter fuchsws

    (@fuchsws)

    cool, already well documented!

    As a URL/Domain change I think there is no need anymore to fetch the old metrics data as old URLs will not be shared anymore. this means, as soon as a “change domain”-function (or even permalink change) will be triggered in the admin, the metrics for this old domain/permalink should be stored in the post meta and simply add up to the new, live fetched metrics. this would not require additional network requests as only the current metrics will be fetched and add up with the older ones (in theory).

    of course multiple url changes should be possible.

    Plugin Author Ben Cole

    (@bcole808)

    For anyone following this thread, this feature is now implemented as of version 1.4.2 – Topic now marked as resolved =)

    The plugin now has the ability to associate multiple URLs with posts and check each URL for data and then combine the numbers. This will be most commonly used for sites with both http:// and https:// URLs, as well as sites performing domain or base URL migrations.

    The settings to configure domain migration can be found under “Settings > Advanced Domain / SSL Setup”

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘URL Change’ is closed to new replies.