Google Analytics AS3 tracking code needed for our flash video player is project number 7482 posted at EUFreelance.com. Click here to post your own project.

Google Analytics AS3 tracking code needed for our flash video player

Status: Closed (Project expired)
Budget: €30-250
Project Creator: denismedia View PM Post PM
Buyer Rating: 9.88/109.88/109.88/109.88/109.88/109.88/109.88/109.88/109.88/109.88/10
(8 reviews)
Created: 03/08/2010 at 0:49 GMT
Bidding Ends: 03/13/2010 at 0:49 GMT
Description: We need to add a Google Analytics AS3 tracking code for our flash video player

The code below doesn't seem to pick up the number of times the videos played etc

We can supply the .fla

Code:

//Google Analytics Component:
//to enable Google tracking drag the "Analytics" component to the stage and give it the instance name "myTracker"; in the Component Inspector enter your GA account number and choose AS3 mode
//"trackPageview" tracks items as virtual urls; the tracked string must start with "/"
//myTracker.trackPageview("/media/"+myMediaPlayer.streamName);
//"trackEvent" tracks items as events with the following parameters
//category: a string representing groups of events.
//action: a string that is paired with each category and is typically used to track activities.
//label: an optional string that provides additional scoping to the category/action pairing.
//value: an optional non-negative integer that associates numerical data with a tracking event.
//myTracker.trackEvent("Category", "Action", "Label", 1);

//example syntax for tracking ID and Name attributes specified in the XML based on type of file (roll vs media)
if(myPlayer.roll){
myTracker.trackPageview("/roll/"+myPlayer.rollName);
myTracker.trackEvent("Roll", "Loaded", myPlayer.rollName, myMediaPlayer.rollID);
if(myPlaylist.visible == true){
myPlaylist.visible = false;
}
} else {
myTracker.trackPageview("/media/"+myPlayer.currentName);
myTracker.trackEvent("Media", "Loaded", myPlayer.currentName, myMediaPlayer.currentID);
}
Project-related Files: -
Job Type:
  • Flash
Database: MySQL
Operating system: Linux
Bid count: 4
Average bid: N/A

View Project Clarification Board Post Message on Project Clarification Board
Messages Posted: 0

If you are the project creator or one of the bidders Login for more options

Project Bids

Bid on This Project

Service Providers PMB Bid Delivery Within Time of Bid Provider Rating
Hidden Bids
Bids are hidden by project creator. Log in as the project creator or as one of the bidders to view bids.

Bid on This Project