Hi Henrique,

Google Analytics is currently not supported under Caja.  We will be looking
at supporting it in the future.

jas


On Mon, Sep 3, 2012 at 9:48 PM, Henrique Gonçalves Abreu
<[email protected]>wrote:

> Hi,
>
> I developed a web app using Google Apps Script (which cajoles my app page
> entirely).
> I'd like to know if it is possible to use Google Analytics on a cajoled
> page/script.
>
> If so, can anyone please give me an example, I'm trying the default
> snippet from Analytics help pages, but I had no success yet.
>
> <script type="text/javascript">
>>   var _gaq = _gaq || [];
>>   _gaq.push(['_setAccount', 'UA-XXXX-Y']);
>>   _gaq.push(['_trackPageview']);
>>   (function() {
>>     var ga = document.createElement('script'); ga.type =
>> 'text/javascript'; ga.async = true;
>>     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : '
>> http://www') + '.google-analytics.com/ga.js';
>>     var s = document.getElementsByTagName('script')[0];
>> s.parentNode.insertBefore(ga, s);
>>   })();
>> </script>
>>
>
> By the way, I'm completely new to Caja and Analytics, any help or tips is
> immensely appreciated.
>
> Thanks,
> Henrique Abreu
>

Reply via email to