embed - Google analytics not showing anything and no error -
i trying use google analytics
data in web page. added code describing here.
but not showing anything. added console code after inside
gapi.analytics.ready(function() {
that not showing. client id using demo 1 created testing purpose.
what may wrong thing doing? please help. new analytics data.
that loks incomplete code me, when set tracking code should have script this.
<!-- google analytics --> <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=gm.parentnode.insertbefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'ua-xxxxx-y', 'auto'); ga('send', 'pageview'); </script> <!-- end google analytics -->
then copy paste footer of website.
note code above wont work copy paste. make sure getting tracking code here. https://analytics.google.com
Comments
Post a Comment