0

I am tracking some data on mobile so I'd like to save the traffic as much as possible for my users.

Say I want to update 5 tracking information at once, I wrote:

_gaq.push(['_trackPageview', '/item-a']);
_gaq.push(['_trackPageview', '/item-b']);
_gaq.push(['_trackPageview', '/item-c']);
_gaq.push(['_trackPageview', '/item-d']);
_gaq.push(['_trackPageview', '/item-e']);

I will send 5 requests. Is there anyway to save this by simply changing the way I track, for example, like this:

_gaq.push(['_trackPageview', ['/item-a', '/item-b', '/item-c', '/item-d', '/item-e']]);

Thanks for any kind of tips!

4

1 回答 1

2

最接近你会得到:

_gaq.push(
  ['_trackPageview', '/item-a'],
  ['_trackPageview', '/item-b'],
  ['_trackPageview', '/item-c'],
  ['_trackPageview', '/item-d'],
  ['_trackPageview', '/item-e']
);
于 2013-11-04T16:34:34.873 回答