Re: com web/php: Adding GoSquared footer code: include/footer.inc
| From: | Paul Dragoonis | Date: | Thu, 25 Jul 2013 16:11:48 +0000 |
| Subject: | Re: com web/php: Adding GoSquared footer code: include/footer.inc | ||
| References: | 1 2 3 4 5 6 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-16393@lists.php.net to get a copy of this message | ||
"whole" == old theme + new theme
On Thu, Jul 25, 2013 at 5:10 PM, Peter Cowburn <salathe@php.net> wrote:
> On 25 July 2013 17:04, Paul Dragoonis <dragoonis@gmail.com> wrote:
>
>> We definitely want analytics on all page loads to give us insight on the
>> website as a whole.
>>
>
> Eventually, sure. But the whole website is going to be the "new site"...
> eventually. Or, by "whole" do you mean windows., people., qa., ... :)
>
>
>>
>> As for identifying which theme is currently being used, I'm sure there's
>> going to be a way to send some kind of event or notification that we can
>> see back at the dashboard.
>>
>>
>> On Thu, Jul 25, 2013 at 5:00 PM, Peter Cowburn <salathe@php.net> wrote:
>>
>>> On 25 July 2013 16:51, Paul Dragoonis <dragoonis@gmail.com> wrote:
>>>
>>>> Login at https://www.gosquared.com
>>>>
>>>> username dragoonis@php.net
>>>> password is in a separate email
>>>>
>>>>
>>>> I just thought, include/footer.inc is probably only used on either the
>>>> old or new site, so we need to make sure the JS is on both old and new
>>>> themes.
>>>>
>>>
>>> Or, only the new theme... to see adoption. :)
>>>
>>> (P.S. There are probably ways to determine which "theme" folks are
>>> using, and report on that... but I have 0 idea what GoSquared offers.)
>>>
>>>
>>>>
>>>>
>>>> On Thu, Jul 25, 2013 at 4:45 PM, Peter Cowburn <salathe@php.net> wrote:
>>>>
>>>>> On 25 July 2013 16:31, Paul Dragoonis <dragoonis@php.net> wrote:
>>>>>
>>>>>> Commit: 4d6dde3ba1ebcb9160858948de4b36883b8424d0
>>>>>> Author: Paul Dragoonis <dragoonis@gmail.com> Thu, 25 Jul
>>>>>> 2013 16:31:09 +0100
>>>>>> Parents: ac07e4cf514230117fa88f0f6a4d1555cd908a44
>>>>>> Branches: master
>>>>>>
>>>>>> Link:
>>>>>>
>>>>>> http://git.php.net/?p=web/php.git;a=commitdiff;h=4d6dde3ba1ebcb9160858948de4b36883b8424d0
>>>>>>
>>>>>> Log:
>>>>>> Adding GoSquared footer code
>>>>>>
>>>>>
>>>>> Where do we get to see the shiny charts?
>>>>>
>>>>>
>>>>>>
>>>>>> Changed paths:
>>>>>> M include/footer.inc
>>>>>>
>>>>>>
>>>>>> Diff:
>>>>>> diff --git a/include/footer.inc b/include/footer.inc
>>>>>> index 0dded3f..b4052b9 100644
>>>>>> --- a/include/footer.inc
>>>>>> +++ b/include/footer.inc
>>>>>> @@ -32,7 +32,23 @@
>>>>>> }
>>>>>> ?>
>>>>>>
>>>>>> -
>>>>>> +<script type="text/javascript">
>>>>>> + var GoSquared = {};
>>>>>> + GoSquared.acct = "GSN-094556-T";
>>>>>> + (function(w){
>>>>>> + function gs(){
>>>>>> + w._gstc_lt = +new Date;
>>>>>> + var d = document, g = d.createElement("script");
>>>>>> + g.type = "text/javascript";
>>>>>> + g.src = "//d1l6p2sc9645hc.cloudfront.net/tracker.js";
>>>>>> + var s = d.getElementsByTagName("script")[0];
>>>>>> + s.parentNode.insertBefore(g, s);
>>>>>> + }
>>>>>> + w.addEventListener ?
>>>>>> + w.addEventListener("load", gs, false) :
>>>>>> + w.attachEvent("onload", gs);
>>>>>> + })(window);
>>>>>> +</script>
>>>>>>
>>>>>> </body>
>>>>>> </html>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> PHP Webmaster List Mailing List (http://www.php.net/)
>>>>>> To unsubscribe, visit: http://www.php.net/unsub.phpÞjñ¹ó¦t
>>>>>> 4ÐuyÛ1bu
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>