Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/02/2012, 06:51
andresjp
 
Fecha de Ingreso: octubre-2010
Ubicación: Zaragoza
Mensajes: 289
Antigüedad: 13 años, 7 meses
Puntos: 76
Respuesta: Duplicar codigo de analitica

Si quieres consultar los datos de analítica web desde dos cuentas diferentes, lo puedes realizar así:

Código Javascript:
Ver original
  1. var _gaq = _gaq || [];
  2.  
  3.   _gaq.push(['historic._setAccount', 'CODIGO_ANTIGUO_DE_ANALYTICS']);
  4.   _gaq.push(['historic._trackPageview']);
  5.  
  6.   _gaq.push(['testing._setAccount', 'CODIGO_NUEVO_DE_ANALYTICS']);
  7.   _gaq.push(['testing._trackPageview']);
  8.  
  9. (function() {
  10.   var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  11.   ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  12.   var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  13. })();

Esto tiene sentido si no te pueden dar acceso a la cuenta original.