Measuring the mobil apps using GTM SDK - lessons learned.
- GTM for websites vs GTM for mobile apps
- how to debug
- campaign tracking
- GA SDK vs GTM SDK
- possible problems
- future of mobile apps measurement
of dispatching ◦ Hits are sent in batches ◦ When the midnight comes, no data are processed ◦ Trade-off: More precise data or an app which won’t discharge your phone’s battery ◦ When using GTM SDK and having an old/default container -> missing data • No javascript, no automagic • No premade tags in GTM • Debugging hurts
Charles 2. Proxy Settings -> port 8888 + private IPV4 address 3. in your mobile phone open: charlesproxy.com/getssl or chls.pro/ssl 4. Check/Save the certificate in Settings > General > Certificates > About 5. You can accept exception and test
goal: application download 2. Campaign leads to application, goal: f.e. new product purchase Both is tracked differently - tagged by a redirect or a ping: f.e. https://click.google-analytics.com/redirect ?tid=UA-00000-1&url=https://itunes.apple.com/us/app/my-app/id123456&aid=com.clientdomain.super-app&idfa={idf a}&cs=clientdomain.com&cm=referral&cn=mobile-interstitial&cc=link1&hash=md5 iOS 1. implement library libAdIdAccess.a , include AdSupport.framework 2. allow data collection from IDFA: tracker.allowIDFACollection = YES; 3. add tracking for app instalations: iAd.framework 4. implement collecting of campaign data during the launch of the application by: [GAIDictionaryBuilder setCampaignParametersFromUrl:urlString] or by: NSDictionary and parse this by: setCampaignParametersFromUrl() 5. tag all the campaigns using this tool: https://developers.google.com/analytics/devguides/collection/ios/v3/campaigns#url-builder Android 1. Include BroadcastReceiver into AndroidManifesto.xml 2. tag all your campaigns leading into the Play Store using this tool: https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#google-play-url-builder 3. implement collecting of campaign data during the launch of the application by the method: setCampaignParamsFromUrl
Auto-Exceptions / Errors and easyTracker auto-screens • IDFA is tracked automatically • Much better SDK documentation • Much less difficult to implement Benefits of GTM SDK • Opportunity to use A/B tests and content experiments via GTM interface • Custom Images • Integration with AdWords and DoubleClick ◦ BUT: No Flurry, Mixpanel or Facebook integrations
which we want to handle to GTM dataLayer.push [[TAGManager instance].dataLayer pushValue:[NSNull null] forKey:@"ecommerce"]; dataLayer.push("contentData",null); dataLayer.push("ecommerceData",null);
do GTM for apps ✔ 3. auto-events 4. non-google template tags (e.g Flurry, MixPannel, FaceBook, Bing) 5. customHTML-like tags 6. InstallReferrerReceiver to be auto enabled. A when? Nobody knows.