according to the ga method reference , the syntax of the .create method:
ga('create', trackingId, opt_configObject);
But when I create a new ga account and it gives me an autogenerated piece of code to copy / paste to my site, it gives me a different .create syntax:
ga('create', trackingId, 'mydomain.com');
I don't see anything in the method reference, which suggests that the second syntax is acceptable.
The ga forum also has an unanswered thread: ga-forum thread .
source share