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:           (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: |
|
| Database: |
MySQL
|
| Operating system: |
Linux
|
| Bid count: |
4 |
| Average bid: |
N/A |
|
 |
 |
Service buyers, who haven't posted any projects, are allowed to post a free trial project once.
It's completely free to post a Trial project. Learn more. |
|