Jump to content

Google Analytics


racheld
 Share

Recommended Posts

I’d like to use GA to track a URLRequest in an onClick event, but I keep getting the following error in my code.TypeError: Error #1009: Cannot access a property or method of a null object reference.at myVideoPlayer::MyVideoPlayer_CDN/linkToSrsPg()

myLogoLink.addEventListener(MouseEvent.CLICK, linkToSrsPg);myLogoLink.buttonMode = true;function linkToSrsPg(e:MouseEvent):void{var mySelection:String = e.target.name;tracker.trackPageview (mySelection);navigateToURL(new URLRequest(“http://www.kidscanpress.com/Canada/CitizenKid-C5065.aspx?section=5&series=2″));}

Any help would be oh, so appreciated!

Edited by racheld
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...