Forum Moderators: martinibuster

Message Too Old, No Replies

Social Media Widgets and Adsense

Are they reducing earnings?

         

webcentric

2:48 pm on May 22, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



OK, first I'll state that I DO NOT use Wordpress or any other commercial CMS. I build my sites from scratch (programming, markup, etc) and I'm quite adverse to using third-party code (even JS) on my sites unless it's absolutely necessary or offers such a benefit as can not be ignored. So, forget about WP plugins and the like. This post addresses social media widget scripts taken directly from widget builders provided by Facebook, Pinterest, etc. The topic may be just as relevant to WP plugins designed for social media but I'm speaking directly to the services these widgets provide without any middleman scripts involved.

Recently, I added a PinIt script to some pages of my site. These pages also contain Adsense ads. The next few days, everything was great. Pinning functions worked great and the Adsense revenue was rolling in.

Yesterday, Adsense went into a tail-spin and CTR all but dried up. I was busy bouncing around on different projects though and didn't have time to give it any serious attention until late in the day. I also try not to overreact to seemingly radical changes in clicks these days because stats get stuck or whatever so I like to give things a bit of time to work themselves out. Anyway, late in the day I started working my way around the site to see what I could see.

In short order, I began to notice various elements of the Pinterest calls were hanging but the real kicker was that this was causing ad units to hang and not show at all in some cases or for many seconds in others.

I'm using asynchronous Adsense code so this makes sense. Adsense is waiting for the page to load. I was using the standard Pinterest code which I believe is synchronous so that also follows that it would load before Adsense.

I've removed the Pinterest code and things seem to be back to normal. I know Pinterest has asynchronous versions of their code but I'm not sure that would mean it would load after the Adsense asynchronous code or that I could guarantee that anyway. The Pinterest code is at the bottom of the page whereas Adsense code is farther up the page so maybe that's all that is required to get Adsense to load first if both scripts are asynchronous.

I've had this same problem with Facebook widget code in the past and removed that as well. My question is, does anyone know of a surefire way to keep social media code from interfering with ad delivery?

One last note. This issue seems to be something to look at when CTR takes a sudden unexpected dive. It's very possible that something other than Adsense is at the root of your problem. Pinterest and Facebook both have their moments and I'm guessing other such services do too. Heck, even Adsense goes on vacation occasionally.

martinibuster

3:06 pm on May 22, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I've experienced this once where the AdSense code clashed with AddThis. It was a temporary event. One or the other changed their code and the external JS one of them was calling in clashed with the other script. The AdSense ad was being modified by the AddThis code. So I removed the AddThis code and contacted them (I think that's what I did...) It was fixed soon after.

webcentric

3:34 pm on May 22, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes, this type of problem does seem to be temporary in nature usually. Updates on the involved SM platform, serving hiccups, etc. It really put a dent in my earnings yesterday though and I don't find that acceptable. Not sure if there's a solution that ensures Adsense will always load ahead of SM scripts or not but if I'm forced to choose, I'll keep Adsense and work with social media in other ways.

webcentric

3:52 pm on May 22, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'll add one other indicator that seems to back up the theory that this particular revenue stall was cause by script loading (or not loading in this case).

CPM revenue has been on the rise for me. It also stopped dead in it's tracks during this period. If it was just clicks that had come to a crawl, other factors could easily have been the cause but CPM doesn't rely on clicks, just that the ad gets displayed. Hence my conclusion that ads not being displayed was the root cause of this bump in the road.

netmeg

4:41 pm on May 22, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I don't run any Pinterest type buttons, but I've made heavy use of FB, Twitter and G+ buttons on all my sites, plus a FB like box (with faces)

I haven't noticed anything effect on CTR or earnings (at least none that I could pin on the social stuff definitively) but all that JS does slow down the page a ton, so we kind of stripped down the implementation, and I got rid of the Like Box entirely since Facebook has severely limited its reach to page fans anyway.

That said, my CTR is up a lot this year, so while I don't think that's the reason, I can't rule it out either.

not2easy

5:17 pm on May 22, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I followed links in their scorecard suggestions to where they suggest leveraging browser caching for your own .js files by setting a long expiration time (in htaccess was easiest for me), and they explain what they refer to as render-blocking JavaScript loaded above the fold and suggest to separate the .js file loading and add it after the last html close tag. It sounds nuts but it does load the other script after AdSense and earnings went up where I did that. I did not take advantage of their suggestion to load css files after the page loads, it looks horrible without much more css in the header than they want. I was redoing a section of a different site at that time and made a few minor layout changes that does allow the bulk of the css to load after the html and it is doing quite well. Now, as to when I will ever get the rest of my sites and pages up to speed, ummm..

webcentric

5:44 pm on May 22, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



After the closing HTML tag? Hmmm. That does sound nuts. How could I find the page that recommends that? Would like to see it in writing. I use Page Speed Insights all the time but haven't see that specifically.

The problem could be that using the asynchronous version of the adsense script is making that script wait until all other scripts (even the ones loaded at the bottom of the page) render before Adsense loads. That's my current theory anyway.

@netmeg -- This is really more of a minor glitch in the grand scheme of things (yearly earnings) and whenever I've seen it, it seems to be short-lived. I equate it to the way a down server eventually comes back online or an update process completes it's run (or however long it takes to track down and fix a bug on the SM end). Yesterday was just very dramatic where the result was concerned.

RedBar

6:16 pm on May 22, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Maybe I'm not in compliance with their T&Cs however I never use their scripts, I copy their 22 x 22 images and serve them myself with the image linked direct to my respective page on their sites.

I hate it when I see these scripts hanging, the worst used to be the W3C CSS Validator however they seem to have sorted that.

webcentric

6:48 pm on May 22, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



copy their 22 x 22 images and serve them myself with the image linked direct to my respective page on their sites.


Most have images you can use in exactly that manner. That technique will get people to your SM pages. Widgets though are really more about sharing in many cases. Particularly with Pinterest, you want people to pin your content so that it gets shared with others (thereby bringing more traffic back to you). Widgets allow this process to happen with a single click and without the user leaving your site. I'm with you. Pages are getting too script heavy these days and these things can seriously slow down a page and, in some cases, neuter your revenue stream by blocking your ad delivery. They don't call 'em blocking scripts for nothing. These scripts are at the bottom of pages and they're still capable of blocking parts of the page load (namely Adsense).

This is really a JavaScript issue at it's core and at the core of that it's a script loading issue and that's what I'm really trying to get a grasp on.

not2easy

7:44 pm on May 22, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I have gone back to look for the specific URL and I see that is was last edited in January and now they have better suggestions here: [feedthebot.com...] and on the Insights page here: [developers.google.com...] but are still saying to add on css after the closing html tag: [developers.google.com...]

I think I will be changing mine to the feedthebot ideas after I do some more checking. Most of the links I came across trying to find it went to 2010 and 2011 articles that didn't have an asynchronous version in mind.

webcentric

8:12 pm on May 22, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes, CSS delivery has it's own quirks. Funny, I was reading that article earlier today.

denisl

4:26 pm on May 23, 2014 (gmt 0)

10+ Year Member Top Contributors Of The Month



That technique will get people to your SM pages. Widgets though are really more about sharing in many cases


Am new to this so did some research on web about whether the widgets are really necessary. Came to the conclusion that people know how to share and follow if they want to (I was only looking at Fb and Twitter).

netmeg

5:28 pm on May 23, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Interestingly, Google just announced today they're working on a JS troubleshooting tool for GWT.

[googlewebmastercentral.blogspot.com...]

webcentric

9:55 pm on May 23, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Very interesting. And also confirming that content previously not taken into account by SE's because of JavaScript will some day probably be as index-able as plain old HTML. There's been evidence of this for some time but it's interesting to see a glimpse into the master plan. I'll be watching for those tools in WMT too.

@denisl -- following is pretty straightforward and easy and IMHO doesn't need a widget. Pinning a photo or sharing a piece of content with another person is facilitated though by widgets. With a PinIT script for example, a viewer can simply hover over an image, click the PinIt button, select what board they want to pin to, and it's a done deal (without ever leaving your site). It's about getting people to inject your content into their social media streams. This is where I think various SM widgets are useful.

martinibuster

12:10 am on May 24, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Good catch, netmeg on the JS troubleshooting tool! :)