SiteApps Team
posted this on March 16, 2011 21:33
You can retrieve your site's tag from the "tags" section of the SiteApps user interface. The javascript tag should look like this:
<script type="text/javascript">
//<![CDATA[[
$SA={s:xxxxx};
(function(){
var sa = document.createElement("script"); sa.type = "text/javascript"; sa.async = true;
sa.src = ("https:" == document.location.protocol ? "https://sj" : "http://j") + ".siteapps.com/sa.js";
var t = document.getElementsByTagName("script")[0]; t.parentNode.insertBefore(sa, t);
})();
//]]>
</script>
Tag implementationBecause many of the apps available on SiteApps could offer a better user experience if the tag is loaded in the beginning of the page, we recommend to implement it in the <HEAD> section of your HTML code, right before closing the </HEAD> tag. Some apps may use information from the webpage (such as the Head Title or Meta Description), so make sure the SiteApps tag is placed after these.
But the tag can be implemented anywhere on the site, and some may prefer to install it at the end of the HTML code, right before the <BODY> tag.
Tag CustomizationsIf your site has sub-domains (such as www.yoursite.com and news.yoursite.com) and you would like SiteApps to share information among these sub-domains, you can force a parameter in the tag to allow this. Simply add the following code $SA.domain="yoursite.com"; to the SiteApps tag substituting yoursite.com with your domain (shown in red below):
<script type="text/javascript">
//<![CDATA[[
$SA={s:xxxxx}; $SA.domain="yoursite.com";
(function(){
var sa = document.createElement("script"); sa.type = "text/javascript"; sa.async = true;
sa.src = ("https:" == document.location.protocol ? "https://sj" : "http://j") + ".siteapps.com/sa.js";
var t = document.getElementsByTagName("script")[0]; t.parentNode.insertBefore(sa, t);
})();
//]]>
</script>
Important note: Different than Google Analytics, you do NOT need to precede this domain with a dot.
PerformanceWe constantly work to optimize the response time for the SiteApps tag.
We also believe in transparency. Check out our real-time third-party performance audit of SiteApps system status.
PrivacyWe treat privacy very seriously. SiteApps only uses first-party cookies. When a website signs up with SiteApps, they agree through the terms of service to notify their users that that site is using SiteApps and post a link to our Opt-out URL on their own privacy policy (and/or their own terms of service) to allow users to opt-out of SiteApps on that site. Please use this link:
http://siteapps.com/web/optout
Comments latest first
Plase
Hello Gustavo.
I don't know what can possibly be wrong. In my case, everything worked flawlessly. All I did was add the HTML/Javascript gadget on Blogger and copy/past the code from SiteApps in it (<script> and </script> included as show in the image attached). Saved and it was running. You may want to check if, after saving the gadget it shows up in the layout screen to grantee it is deployed. It should work.
Also, if you have more than one site in your profile at SiteApps, be sure to have the right site selected when you copy/past the code.
After i enter the code, nothing shows up. And when i'm going to instal an app, appears this message : Warning: We noticed that the http://www.highgamesbr.blogspot.com does not have any server calls to SiteApps. Apps will only work when the SiteApps tag has been installed correctly. Learn more here. I'm doing by the André Santos method. Am I doing something wrong? Thank you.
Hi shahmeerhaq, to add the any app to your Blogger site you first have to create an account with SiteApps. Then you can follow the steps in this article to install the SiteApps tag:
http://support.siteapps.com/entries/20780478-adding-siteapps-to-blogger-blogspot-site
Cheers,
SiteApps Team
guys how can i add santa hat app to my blogger site.
I've tried to incorporate the app (Floating Social Widget) into my blog (using Blogger) but don't quite get it what specific script/HTML codes I need to install in my blog? Can anyone help?
Thanks in advance.
Hi Chris - the square brackets are used to guarantee W3C HTML5 strict compliance. However, the tag will function correctly without these lines.
Because of how Modx works, you can use the SiteApps tags without the lines that have double brackets:
//<![CDATA[[
and
//]]>
Cheers,
SiteApps Team
Hello Amelia - we just launched our WordPress plugin that automatically includes the SiteApps tag. Download the plugin here:
http://wordpress.org/extend/plugins/siteapps/
Thank you,
SiteApps Team
I have my site with wordpress so all the template are in php where should i put the code?