Forums/General Categories/Implementation

Implementing SiteApps tag on your site for the 1st time?

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>

 

 


OrangeBullet.png  Tag implementation

Because 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.

 

OrangeBullet.png  Tag Customizations

If 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.

 

OrangeBullet.png  Performance

We 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.

 

OrangeBullet.png  Privacy

We 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:

 

 

<script src="http://siteapps.com/js/sa_optout.js" type="text/javascript"></script>
Your current cookie status for SiteApps on this site is:
<span id="sa_optstatus"></div>
<script type="text/javascript">saOptout("status");</script>
http://siteapps.com/web/optout
 

Comments latest first

User photo
Jessica de Farias

Plase

I doubt a lap on the site where the cod html applications
Jessica Farias
January 17, 2012 17:47
User photo
Andre Santos

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. 

 

January 09, 2012 04:57
User photo
Gustavo

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.

December 30, 2011 14:15
User photo
SiteApps Team
SiteApps.com

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

December 13, 2011 13:21
User photo
shahmeerhaq

guys how can i add santa hat app to my blogger site.

December 13, 2011 07:39
User photo
Richard Ng

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.

 

December 11, 2011 21:38
User photo
SiteApps Team
SiteApps.com

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

December 01, 2011 12:33
User photo
Chris Kennedy
Hi, I use Modx as a cms.. modx interprests double square brackets, as a tag to insert a variable. As a result most of the code is lost. Is there an alternative tracking script or any way it can be adjusted to compensate. Sorry I know llittle about JavaScript
December 01, 2011 06:10
User photo
SiteApps Team
SiteApps.com

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

July 22, 2011 10:58
User photo
amelia lopez solersi

I have my site with wordpress so all the template are in php where should i put the code?

July 22, 2011 10:50