It’s important to keep your share URLs consistent with your Parsely canonical URL. Parsely looks at the “<link rel=”canonical”>” tag and the “<meta property=”og:url”>” tag when determining the possible aliases for a post. If these URLs are different, it can cause incorrect reporting of not just shares, but pageviews, visitors, etc. in the dashboard as well.
How could different share URLs affect my pageview counts? They’re not related.
The reason for this is how Parsely considers the idea of a post. A “post” is one canonical URL, with multiple link aliases. So “http://example.com/article12345” could be the canonical URL, but “http://www.example.com/seo-friendly-slug” redirects to the above canonical. In Parsely’s system, those two links are grouped under one “post”: that is, hits and shares to either of those are counted to the same post. The second url is considered an “alias” in our system to the canonical url.
The reason that your share URLs could affect share counts is that we rely on third-party services to get our share counts, and in order to maximize the share count accuracy we receive from these third-party services like Twitter and Facebook, we make every share link an alias of the canonical url, so that each of those urls will be polled for shares data from Twitter and Facebook. Normally, this is not a problem, since the canonicals and share URLs match. When the share URLs are different, however, you must ensure that they resolve or redirect to the same URL as the Parsely canonical URL or pageviews can be misattributed.
Here are some examples of the right and wrong way to do this:
Correct Share URL tags
<link rel="canonical" href="http://www.example.com/article"/> <meta property="og:url" content="http://www.example.com/article"/> <meta name="twitter:url" value="http://www.example.com/article"/>
Incorrect Share URL tags
<link rel="canonical" href="http://www.example.com/article"/> <meta property="og:url" content="http://www.example.com/article1"/> <meta name="twitter:url" value="http://www.example.com/seo-friendly-url"/>
But I use an SEO-friendly link for my share canonicals, but a different link for my Parsely canonical. Will this be a problem?
No- as long as the SEO-friendly link resolves or redirects to the Parsely canonical url (for example- in the above example, as long as example.com/seo-friendly-url redirects to http://www.example.com/article, then there will be no problem. The SEO-friendly link will be aliased to the Parsely canonical url and everything will be correctly categorized. Please note, however, that it is best practice to have one single canonical url and we strongly recommend publishers to have one single canonical url for all their social networks as well as for Parsely.
I’m still not sure about this. Can I get more information?
Sure! Shoot firstname.lastname@example.org an email, or ask your account manager for help, and we’ll be happy to get back to you and help in your specific case!