I just want an easier, cleaner code for my Web pages. So I thought I could link to the javascript of the google code from a script call. Will it still log the page just the same? Thank you.

  • It'll be slower and potentially break if Google updates their end. – ceejayoz Mar 3 '15 at 19:33
  • Not sure, but you could use this debugging tool for chrome to check: chrome.google.com/webstore/detail/google-analytics-debugger/… – danwild Mar 3 '15 at 20:43
  • You will end up making an extra HTTP request, and depending on the timing of it, you may miss some users if they bounce from your page very fast. But will likely "work" in most instances. – nathangiesbrecht Mar 3 '15 at 21:15

I tried to do so and it mostly worked.

The biggest problem with it as far as I could tell is that Analytics couldn't validate that the snippet was installed by crawling my site. I went back to embedding it directly.

  • Thank you. As a result, I'm going back to embedding it as you did. – usermac Mar 4 '15 at 18:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.