Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marchbold/3138c609721a4a1ce34c to your computer and use it in GitHub Desktop.
Save marchbold/3138c609721a4a1ce34c to your computer and use it in GitHub Desktop.
Sending a screen view using the GoogleAnalyitcs ANE
var tracker:Tracker = GoogleAnalytics.service.getTracker( "YOUR_TRACKING_ID" );
// Sets the screen name. This will be sent with any subsequent events / views on this tracker
tracker.setScreenName( "currentScreenName" );
tracker.send( new ScreenViewBuilder().build() );
// com.distriqt.GoogleAnalytics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment