If you recently upgraded your site security by adding https to it you will probably have noticed that any outgoing traffic to other sites is not passing your referral data to their Google Analytics Stats.
For example, if you operate a travel related site which features banners to other business then you will most probably be using an Ad Management Plugin which will show and rotate your ads.
Every time a visitor of your site selects one of the ads he/she is redirected to the advertised site. Once this happens the following actions are triggered:
This way you and your advertiser will possibly match their outbound and inbound in-between traffic stats.
Once the source site(your site) adds the https protocol then Google Analytics will stop transferring referral data to the advertiser site unless target site is also using an https protocol as well.
So, even though your outbound traffic to your advertiser site will remain the same the GA report of your client site will show a significant decrease to referrals coming from your site while its direct traffic stats should increase to the same numbers as the lost referral data.
Only one of them is not passing the referral data; when a secure site(https) is passing data to a non secure site(http):
Google has foreseen this issue years ago, in 2012 they added Meta Referral Tag for browsers with the appropriate support.
<meta name="referrer" content="always" />
This tag allows your https site referral data to be passed to your client/advertiser http website.
You can find more details about the tag syntax on the meta referrer specification.
As most of the times there are two ways adding some code to your WordPress site, the manual way(some call it as the hard way) and the plugin way.
//Add Meta Referrer Tag in Header without Plugin function add_meta_tags() { ?> <meta name="referrer" content="always"/> <?php } add_action('wp_head', 'add_meta_tags'); //Add Meta Referrer Tag in Header without Plugin
Meaning that sometime the referral data is still not forwarded since it depends on the following:
Image credit: Pablo Garcia Saldaña
WordPress is a widely popular Content Management System (CMS) that powers over 40% of all…
WordPress is a popular platform that empowers more than 60 million websites worldwide. Millions of…
In this article, we will cover ten crucial WordPress site maintenance tasks that every website…
In this blog article, we will explore the various WordPress security solutions you can implement…
Plugins are an integral part of WordPress, as they offer countless benefits and features that…
In this article, we will explore various strategies that can help you enhance your WordPress…
View Comments
Thank for sharing, where can i find function.php file ?
It can be found in side your active theme directory under /wp-content/themes/
Many thanks for this information with the Metatag