Created
July 13, 2016 02:09
-
-
Save marchbold/fcf663965f67209d6c848cf42b2a3468 to your computer and use it in GitHub Desktop.
Measuring Promotions using the Google Analytics ANE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var promotion:Promotion = new Promotion() | |
| .setId("PROMO_1234") | |
| .setName("Summer Sale") | |
| .setCreative("summer_banner2") | |
| .setPosition("banner_slot1"); | |
| var builder:ScreenViewBuilder = ScreenViewBuilder( | |
| new ScreenViewBuilder() | |
| .addPromotion( promotion ) | |
| ); | |
| var tracker:Tracker = GoogleAnalytics.service.defaultTracker; | |
| tracker.setScreenName( "promotions" ); | |
| tracker.send( builder.build() ); | |
| // com.distriqt.GoogleAnalytics |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment