Jump to content

Google Analytics

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

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...