Google Analytics Feature

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Google Analytics Feature

Harvey
You guys should allow more than just a field for entering the UA number.  There are so many custom configs now, you should give the use the option for the standard UA setup (for basic users) and a full field that allows you to enter multiple lines of code.

Just my 2 cents.

HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Google Analytics Feature

Pedro <Nabble>
You can also generate the custom code at Google's page and put it manually in your app.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Google Analytics Feature

Harvey
I am trying to make a change to my GA code.

The original code is this:

                    <script type="text/javascript">
                      var _gaq = _gaq || [];
                      _gaq.push(['_setAccount', 'UA-6071672-2']);
                      _gaq.push(['_setDomainName', 'nyskiblog.com']);
                      _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>

The new code is this:

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-6071672-2']);
  _gaq.push(['_setDomainName', 'nyskiblog.com']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

The difference is in this line:
    ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';

I have tried to override the analytics macro but when I view source on all three apps I see the old code.

Could you make this change for me?  Maybe make the change to the original macro and delete the override I created.

Thank you.


 
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Google Analytics Feature

Harvey
In the forum I see this:



In the newspapers apps I see this:



But in all when I view sources I don't see the new code.
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Google Analytics Feature

Pedro <Nabble>
I changed that in your three apps. Please, take a look.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Google Analytics Feature

Harvey
Very cool thanks. New analytics code is showing in the source code.


On Wed, Oct 23, 2013 at 2:50 PM, Pedro <Nabble> [via Nabble Support] <[hidden email]> wrote:
I changed that in your three apps. Please, take a look.
My test forum.



If you reply to this email, your message will be added to the discussion below:
http://support.nabble.com/Google-Analytics-Feature-tp7583522p7587498.html
To unsubscribe from Google Analytics Feature, click here.
NAML



--
"Like" us on Facebook: www.facebook.com/NYSkiBlog
Follow us on Twitter: http://twitter.com/nyskiblog
----------
Harvey Road: NYSkiBlog.com
NY Ski Forum: forum.NYSkiBlog.com
NY Ski Magazine: mag.NYSkiBlog.com
NY Ski Directory: directory.NYSkiBlog.com
HTTPS Please!