语言

Menu
Sites
Language
google analytics support ?

Hi !

I'm trying to implement some google analytics tracking in one web app, using google analytics universal.

 

I copy and pasted the default code google gave me :

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-47576594-1', 'ixemes.com');
  ga('send','pageview');

</script>

on config.xml, I added     <access origin="*" subdomains="true"/>

I get no js errors, but nothing show on my google analytics console. It's not working either on simulator or on a real phone. If i check javascript console, there is not network traffic outgoing to google analytics servers.

Same code, in a basic webpage hosted on a random server works fine.

 

Is there any know limitations that prevent google analytics from working on tizen web app ?

 

Regards

JP

 

 

 

响应

1 回复
Alexander AVSukhov