惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recorded Future
Recorded Future
Microsoft Security Blog
Microsoft Security Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
人人都是产品经理
人人都是产品经理
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
Stack Overflow Blog
Stack Overflow Blog
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
The Cloudflare Blog
B
Blog RSS Feed
小众软件
小众软件
博客园 - 叶小钗
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 聂微东
博客园_首页
B
Blog
雷峰网
雷峰网
S
SegmentFault 最新的问题
N
Netflix TechBlog - Medium
D
Docker
博客园 - 司徒正美
博客园 - 【当耐特】
大猫的无限游戏
大猫的无限游戏
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
U
Unit 42
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
腾讯CDC
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
Jina AI
Jina AI
WordPress大学
WordPress大学
D
DataBreaches.Net
V
V2EX
V
Visual Studio Blog
Know Your Adversary
Know Your Adversary
P
Privacy & Cybersecurity Law Blog
F
Full Disclosure
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
The Hacker News
The Hacker News
Security Archives - TechRepublic
Security Archives - TechRepublic
IT之家
IT之家
P
Privacy International News Feed

AddToAny Blog

Threads share button Replace AddThis with AddToAny, the AddThis alternative
Get back your share counts after a move to HTTPS or a URL change
2018-08-06 · via AddToAny Blog

August 6th, 2018

AddToAny Share Count Recovery is a free & mighty feature for publishers using share counters.

You can recover lost share counts when moving to HTTPS, a new domain name, or a new URL structure. A previous URL’s share counts are simply added to the current URL’s share counts, so you won’t lose your new counts.

AddToAny Share Count Recovery

HTTPS + HTTP

As websites transition from plain HTTP to encrypted HTTPS, publishers are finding that share counts — especially Facebook Likes — reset to zero. This is because Facebook considers http://example.com/ and https://example.com/ to be completely different URLs.

Facebook offers technical guidance on how developers can redirect URLs and exempt their crawler from redirects to retain share counts. This is doable for some developers and WebOps teams, but the Facebook crawler exemption can be difficult to setup, awkward to maintain, and it still doesn’t cover Pinterest and Reddit.

With AddToAny share count recovery, it’s just one line to combine counts for the HTTP and HTTPS versions of shared URLs.

HTTP recovery applies to Facebook, Pinterest, and Reddit. Some services — such as Tumblr — are ‘protocol neutral’ with shared URLs, meaning they consider http://example.com/ to be the same as https://example.com/. So if you’re only recovering HTTP counts, AddToAny skips the extra lookup for unaffected services such as Tumblr.

New domain + Old domain

Whether you’ve switched to a new domain name or a new subdomain, AddToAny has your domain recovery needs covered too.

Just place your old domain name in a line of code as demonstrated in the share count recovery docs.

New path + Old path (and other URL changes)

For more complex changes, AddToAny lets you script out your own recovery logic within a custom JavaScript function. A helpful data object is passed to your custom recovery function, making it convenient to reconstruct an old URL structure based on parts of the shared URL, such as the domain, protocol, and pathname parts. You can also get values from any HTML data-* attributes you may have provided, such as a post ID, day, month, or year.

Recover share counts with AddToAny

See the WordPress, Drupal, and HTML guides for how to use share count recovery to get your share counts back.