AddThis tools require that the profile ID on your page match the one associated with the profile you’re modifying in order for the changes to work. Without this, we can’t know which settings to use. This document will present possible problems with your profile ID, instructions on how to determine what profile ID is, and how to correct the profile ID if it’s wrong
- An anonymous profile ID – If you have a profile ID that starts with xa- then the AddThis tools may not work.
- An invalid profile ID – If you have a profile ID that isn’t correct
- A profile ID that belongs to a different account – If your profile ID looks correct, go to your publisher settings and verify that you see that profile ID in your account. Often developers will copy AddThis code from other websites and not use the correct profile ID.
- No profile ID set – If you have no profile ID set then you’ll need to add it to your page in order for AddThis to work.
How to Check the Profile ID
There are two ways you can do this. You can use the bookmarklet below to check it. First, drag this bookmarklet to your browser’s bookmarks/favorites bar. Then, go to the page you want to check and click it.
To get to the Firefox web console on a Mac, click on the “Tools” menu, then go to “Web Developer” and then “Web Console.” Or you could press Command+Option+K
In Windows, click on the Firefox menu, then select Web Developer and then Web Console. Or you can press Control+Shift+K
Then go to the new Develop menu and select “Show Error Console.” Or press Command+Option+C
Internet Explorer 9+
Internet Explorer 9 and above have their F12 Developer tools under the gear menu. Or, as the name suggests, you can get to it by pressing F12.
How to check the profile ID
To check the profile ID, enter this at the console command line:
This is an internal function that will give you the exact profile ID that is being used by the AddThis code on the page. You should see a profile ID that looks like your AddThis username, “atblog” in this example, or one that starts with ra- and then has sixteen random characters afterwards. (In developer speak: A sixteen character hexadecimal string.) Something like this: ra-42fed1e187bae420
How to set the Correct Profile ID
The easiest and way to set the profile ID is to set it in the addthis_widget.js call, like this:
Second, you can set it using the addthis_config variable. This snippet will set your profile ID in the addthis_config variable. To prevent other code overriding this you should put it at the end of your page, just before the tag:
In both these examples remember to replace YOUR PROFILE ID with your profile ID.
Was this article helpful to you?
Last modified: May 25th, 2016