I have the Google Analytics module (6.x-3.3) installed and have ticked the box 'Track download links', and noted that the file extension mp3 is included in the list of extensions to track (I did not alter the default which seems to be very comprehensive). However in looking in the Google Analytics account ('Event Tracking') I note that the audio file (mp3) downloads are not registering. The only figure for Downloads is for jpg files. Other stas are being collected properly, so I know the code is working properly (except for mp3s!). I have tested it by downloading an mp3 file myself on a number of occasions over the past week, and the stats should now be shown on Google Analytics. Can anyone shed some light on what might be the problem?

Example page where an mp3 file is included both in a player and as a downloadable link:
http://dublincitypubliclibraries.com/dublin-buildings

Thaks in advance,
Ed

CommentFileSizeAuthor
#6 player-and-link.png305.56 KBebyrne41

Comments

hass’s picture

Component: User Interface » Documentation
Status: Active » Fixed

This are not links to .mp3 urls, this are .php urls. If you need consulting feel free to use my contact tab.

ebyrne41’s picture

The page I have pointed to contains a download link to an mp3 file, plus also an embedded onepixelout player via swftools module to play an mp3 file in situ. Neither playing the mp3 on the page or downloading the mp3 via the separate link provided triggers an event in Google Analytics.
So, my original query stands. How come Google Analytics is not tracking (a) a download of the mp3 file, or (b) a playing of the mp3 file via the embedded player?

hass’s picture

I may be blind, but I don't see a player on this page with my ipad. I only see a link http://dublincitypubliclibraries.com/sites/all/modules/pubdlcnt/pubdlcnt.php?file=http://dublincitypubliclibraries.com/sites/default/files/media/Introduction.mp3&nid=47 that may link to an mp3 file, but must be tracked in ga as .PHP file. Uninstall http://drupal.org/project/pubdlcnt module and GA will work.

hass’s picture

Project: Google Analytics » Public Download Count
Version: 6.x-3.3 » 6.x-1.x-dev
Category: support » bug
Status: Fixed » Active

Moving as http://drupal.org/project/pubdlcnt should keep the original urls unchanged, what is possible with rewriting.

hass’s picture

Title: Google Analytics not tracking mp3 downloads » Keep original urls unchanged and rewrite under the hood
ebyrne41’s picture

StatusFileSize
new305.56 KB

I have deactivated the 'Public Download Count' module (http://drupal.org/project/pubdlcnt), but only so that you can see that that module is not the reason why GA is not picking up mp3 downloads. I in fact installed and activated the 'Public Download Count' module after I first posted this issue here, in an attempt to see if another module would give me some stats. That module is not the reason GA is nmot picking up mp3 downloads. The 'Public Download Count' module does give me stats for downloads, but not for plays. Anyway, back to the GA issue; I include here an image to show the player and download link on the page, there must be an issue with your iPad and what it shows, iPad not showing flash player I expect, that age old 'Apple don't like flash' issue. So, back to square one. You will have to revert to standard PC I'm afraid to see the player in situ I think.

ebyrne41’s picture

Project: Public Download Count » Google Analytics
Version: 6.x-1.x-dev » 6.x-3.3
Component: Documentation » User Interface
ebyrne41’s picture

Title: Keep original urls unchanged and rewrite under the hood » Google Analytics not tracking mp3 downloads
hass’s picture

Title: Google Analytics not tracking mp3 downloads » Keep original urls unchanged and rewrite under the hood
Project: Google Analytics » Public Download Count
Version: 6.x-3.3 » 6.x-1.x-dev
Component: User Interface » Code

Let's move this over to the Public Download Count project. This URL change need to be seen as a critical bug or at least a critical missing feature. As all has been answered here regarding GA, I'm moving to the eyes of Public Download Count back.

Other stuff:

Click on "Download Audio file" works and tracker fires to Google.
utme:5(Downloads*MP3*/sites/default/files/media/Introduction.mp3)

Click on "Play" in Flash does NOT fire to Google. You need to implement some extra code in the flash applet. GA module cannot catch this clicks. The Flash applet need to fire the event himself to Google. http://drupal.org/project/issues/swftools?text=analytics and http://code.google.com/intl/de-DE/apis/analytics/docs/tracking/flashTrac...

chalpin’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)