Yesterday I wrote about a problem I came across using AddThis service. Today I had a new issue.
This is an example of the code generated by AddThis:
It’s said what you need to do is to include it in your page and AddThis will do all the work for you. Now, it didn’t in my case…
After my fix from yesterday all worked perfect but the problem occured when HTTPS \ SSL was used on IE – I was getting the following alert:
The reason for the problem was the page was delivered using secure channel (SSL) but there was a link to an external JS library (AddThis widget) which was not secure (it was referenced with http://). Again I consider that as a bug with AddThis – if they supply you with ready-to-go code it should work disregarding wheter HTTP or HTTPS is used. Google Analytics serves a dynamic code, which prevents from that issue. There’s a note on that on AddThis help, but you get there when you get issues only.
Anyhow, I followd Google Analytics approach and modified the AddThis code so it looks as below:
That really works! I’m going to report that issue to AddThis authors. I hope they will make a change and nobody else has problems with that.