• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] how to put Google analytic in player ?

Started by alimehdipak,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alimehdipakTopic starter

how to put Google analytic in player ? because yesterday one my friend embed the video in his website , but in my google analtyic the is zero report in my analytic ,

  •  

PHPVibe A.

In embed.php before the last ?>

add this line:
echo html(get_option('googleanalitycs'));

alimehdipakTopic starter

i added like this and its working fine now . thanks sir

';
} else {
//No video
echo _lang("Video was removed.");
}

}
?>

<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-52045710-1', 'ivod.co');
  ga('send', 'pageview');

</script>
  •  

PHPVibe A.


Similar topics (7)