Permalink
Browse files

Handle AnonymizeIp. Fixes #28

  • Loading branch information...
eduardocereto committed Jul 19, 2012
1 parent 43d8b29 commit 2d82687c24c247cedacfb0fb52ce268992b720ac
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/core.js
View
@@ -182,10 +182,13 @@ GAS.prototype._execute = function() {
return return_val;
}
- // Intercept _link and _linkByPost and _require. They can only be called once.
- if (foo === '_link' || foo === '_linkByPost' || foo === '_require') {
+ // Intercept functions that can only be called once.
+ if (foo === '_link' || foo === '_linkByPost' || foo === '_require' ||
+ foo === '_anonymizeIp')
+ {
+ acc_foo = _build_acct_name(acct_name) + foo;
args = slice.call(sub);
- args.unshift(foo);
+ args.unshift(acc_foo);
return _gaq_push(args);
}

0 comments on commit 2d82687

Please sign in to comment.