22 | 05 | 2019
Main menu
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 56 guests and no members online

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


More options
Previous news

Subscribers: 14 905

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 5 years 1 month ago #6993

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 462
  • Thank you received: 40
  • 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']); 
(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); 

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: 4 years 11 months ago by admin.
The administrator has disabled public write access.
Time to create page: 0.160 seconds
for children older than 12 years