Reputation: 7734
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!
Upvotes: 0
Views: 71
Reputation: 2452
Closest you'll get:
_gaq.push(
['_trackPageview', '/item-a'],
['_trackPageview', '/item-b'],
['_trackPageview', '/item-c'],
['_trackPageview', '/item-d'],
['_trackPageview', '/item-e']
);
Upvotes: 2