Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7158081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:00:07+00:00 2026-05-28T13:00:07+00:00

I use the next code from Google for Analytics: <script type=’text/javascript’> var _gaq =

  • 0

I use the next code from Google for Analytics:

<script type='text/javascript'>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '############']);
_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>

And I use minify library for merging all JS files into the one. And I want to include ga.js to it. Can I use ga.js from my server and how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:00:08+00:00Added an answer on May 28, 2026 at 1:00 pm

    Sure you could use it from your server. Just download it and include it locally instead. It’s even already minified. The thing is, you probably don’t want to do that. Such a file is usually distributed from a CDN. There are a couple of advantages to this:

    • If a lot of sites include it from there, chances are that your users will already have it in their cache and will not need to download it
    • Those CDNs have distributed servers around the world. It will automatically download it from the closest source to your users, which is better than what you can guarantee with your server.
    • You will also miss out on possible new features being added.

    You can read Google’s word on that.

    In short, juts leave it on GA’s servers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use the next code to retrieve data from a table in the database:
I would like to use http://code.google.com/p/stateless in my code to separate the functionality from
I use the next code to read all of the elemnts from a file
I use next code to print current time Calendar cal = Calendar.getInstance(); System.out.println(cal.getTime()); I
In Flash Builder (flex 4) I try to use next code to set selected
I allocate a color entry with the next code, then I use it to
I am use next type of strings: LPCSTR, TCHAR, String i want to convert:
I have some old javascript code from around 2000-2002 which (surprisingly) still works in
I am trying to use Kangax's script from here: http://kangax.github.com/cft/ to detect those browsers
I am trying to get data from a Google Doc Spreadsheet, using javascript and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.