Jump to content

Google Analytics


racheld

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!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...