20 | 11 | 2017
Main menu
Login/Logout
 
Contacts
Реклама
Our button

Блог Ecolora

Код:

<a href="http://www.ecolora.com" target="_blank" rel="nothing" title="Ecolora.com"><img alt="Ecolora.com" height="31" src="http://www.ecolora.com/images/ecoloracom.gif" width="88" /></a>
Who's online

We have 222 guests and no members online

Лента новостей

Newsletter

More options
Previous news

Subscribers: 10 190

Welcome, Guest
Username: Password: Remember me
Component and plugin for musical sites / Компонент для музыкальных сайтов и улучшенная версия плагина MP3 Browser

TOPIC: How to use Google Analytics with Commedia

How to use Google Analytics with Commedia 3 years 6 months ago #6993

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 456
  • Thank you received: 37
  • Karma: 19
First You should to open page:

Google Analytics

And to register or to login there.

After You've entered Your account You should to open Admin page and select one of Your accounts (sites) or Create one:


Then You should to select Your site's account and click on Account Settings. You'll see the Account ID there:



We get it. It's 27852055, for example.

Then You need to open index.php of Your template and insert this script there betwee the <head></head> tags, for example:
<script type="text/javascript"> 
var _gaq = _gaq || []; 
_gaq.push(['_setAccount', 'UA-27852055-1']); 
_gaq.push(['_trackPageview']); 
(function() { 
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 
})(); 
</script>

of new code from GA system.
After You did it, You should to open Commedia content plugin settings and enable Google Analytics option.

It will send events to Google Analytics every time when the user play or download the file using Commedia.

Some time (or days) later You'll have to see information about playing and download counts in Your GA panel:



On the last screenshot You have to see information about how many times every file was played for the last week. :)
Last Edit: 3 years 5 months ago by admin.
The administrator has disabled public write access.
Time to create page: 0.160 seconds
for children older than 12 years