I'd like to filter the Analytics log by the version of the code who made them.

The goal is to grant that all the Analytics logs id done by the new Universal version.

  • Add an annotation or begin using custom variables? – Anagio Jul 5 '14 at 6:43
  • The goal is to have a report where the old code is used, so adding custom vars can show me where is not used! I like it! Can you put in form in answer? – Ivan Buttinoni Jul 6 '14 at 19:24

You can use custom variables, or an annotation to indicate the change


Google has documentation about the differences between classic and universal analytics code.

You can test which one is installed using JavaScript pretty easily.

if (typeof ga == 'function'){
    // universal analytics
} else if (typeof _gaq != 'undefined'){
    // classic analytics

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.