as3-universal-analytics
as3-universal-analytics copied to clipboard
Campaign tracking on Android/iOS
Does this library support campaing tracking? I mean does it support obtaining the campaign referral information via a custom referral url when the app is downloaded from GPlay/Itunes?
Thanks
Does this library support campaing tracking?
not for now, but it is planed on the web see support JS bridge for online SWF
eg.
we should also be able to get the document url query/hash to gather campaign info
for ex: www.as3lang.org/?utm_source=google&utm_medium=banner&utm_term=flash&utm_content=deadbeef&utm_campaign=Runtime%20of%20Death
for campaign inside an app store
I mean does it support obtaining the campaign referral information via a custom referral url when the app is downloaded from GPlay/Itunes?
no the library does not support that and can't support it using only ActionScript 3.0
see ANE-Google-Analytics - INSTALL_REFERRER / CampaignData does not work
that said, it should be possible to provide a small ANE that would bridge with the AS3 library to report and track mobile install referrer
see: Mobile App Acquisition Analytics Help - Set up install tracking for Mobile Apps Third-Party Apps Conversion Tracking - Android Integration Third-Party Apps Conversion Tracking - iOS Integration
Note that the App Marketplace should be able to track "new users" and the "marketplace" with the App Installer ID
from App Marketplace
App Marketplace Discover which marketplaces users visit to download your app. Native operating system platforms, like Google Play, and third-party platforms both appear in this report.
With the App Marketplace report, you can see where users download your app most frequently, so you can assess your performance each marketplace. For example, you might find that the number of time your app is downloaded is consistent across multiple marketplaces, and your campaign investment in each is a successful strategy. Conversely, you might find that you perform really well in one marketplace and not in another, so you might want to reconsider your strategy and divest from all but one or two marketplace campaigns.
Not all marketplaces support the App Installer ID, the data Google Analytics needs to recognize a marketplace. This accounts for data that appears in this report as (not set). Additionally, some marketplaces don’t send campaign data to Google Analytics. In those cases, the Source / Medium dimension will not display data.
for example:
var gameinfo:Dictionnary = new Dictionnary();
gameinfo[ Tracker.APP_NAME ] = "My Game";
gameinfo[ Tracker.APP_ID ] = "com.something.mygame";
gameinfo[ Tracker.APP_VERSION ] = "1.0.0";
gameinfo[ Tracker.APP_INSTALLER_ID ] = "Amazon App Store";
tracker.add( gameinfo );
tracker.screenview( "Intro" );
In your AIR AS3 source code, you could simply detect which app store you are distributing the app from
switch( foobar )
{
case "AAA":
gameinfo[ Tracker.APP_INSTALLER_ID ] = "Google Play Store";
break;
case "BBB":
gameinfo[ Tracker.APP_INSTALLER_ID ] = "Amazon App Store";
break;
case "CCC":
gameinfo[ Tracker.APP_INSTALLER_ID ] = "Apple App Store";
break;
}
with APP_INSTALLER_ID it should show in the App Marketplace report, it will not show the ad campaign referrer though.
As, zwetan said, "that said, it should be possible to provide a small ANE that would bridge with the AS3 library to report and track mobile install referrer", it's true.. took me about all day to figure this out and find this library instead of the ANE-Google-Analytics one, which does not allow you to set variables like utm_source, etc..
I'm using the ane from MobileAppTracker (https://github.com/MobileAppTracking/air-plugin), as it was one of the only ones I found that was current, and was able to retrieve the: com.android.vending.INSTALL_REFERRER
It's pretty hacky, since I'm just initializing this mobile app tracker ane, and not really using it for anything other than getReferrer()
Hope this helps someone, somewhere. Ugh.
off course it's true LOL
so yeah ideally you want a very small ANE that does only that
retrieve com.android.vending.INSTALL_REFERRER
and ideally do it for iOS/Android and maybe Desktop too
for Android is "easy" as it is there iOS and desktop are whole other stories
in term of where to put that functionality I would prefer to keep that library "pure AS3 only" so even if such small ANE were to exists it would be imho better fit in a separate project
Hi. First of all - thanks for this library, very helpful. Need to use CampaignGA in my AIR app for iOS/Android. Still no changes in this question?
sorry still no changes