One quick thing you’ll want to enable while developing is the DebugView in Google Analytics. It is a live-ish stream of events from the device, and very useful to begin to understand how your application is understood by GA.
Head over to the docs for a thorough understanding, or just follow along here.
To enable it, you’ll need to pass this argument in XCode:
Cheat Sheet: This post’s updated sample app if you like (plus your own GoogleService-Info.plist file)
Let’s start off by making sure we have a new Google Analytics property since it takes a bit for the data to show up when making a new property (maybe I’m just impatient). Then head on over to https://console.firebase.google.com/ and create a new project.
I have decided to take on a fun learning experience and build a sample iOS app that I can use to integrate Adobe, Google, Facebook, etc. martech SDKs and share the learnings here.
I’m not a developer, I’m a strategist, but I’ve trudged through and learned how to do the basics, so for this project I’m going to assume you know at least the very basics of Swift programming, why we want a martech SDK in our app, how to build and run an app in XCode, etc.
Starting with the sample app, I built a very simple three-tabbed Swift app you can download and follow along with.
You will observe that I have three tabs, Account, Shop, and Support. I picked these because we can demo some of the functionality of the SDKs across these three basic view paradigms.
Go ahead and click through the views. Nothing exciting here, and you should see a whole lotta nothing happening in the logs in XCode.
The main thing I’d like to call out is that I added a viewDidLoad, and a viewWillAppear. My thoughts on why I did this relate to the functionality sending “pageviews” in the future Adobe Analytics implementation. Thoughts on this approach? Overkill, maybe?
Hi, I’m Gil. I live in Chicago, my pizza is cut in squares, and I enjoy music, future studies, and being a dad.
I currently work for Adobe as a digital experience architect (all views expressed here are my own), but I grew up learning HTML in 1995 so I could add webring banners and “hit counters” to my Geocities pages.
“Wait? How old are you, bro?”
Well, I bought a bottle of CK One with my summer paycheck, I ran a local BBS for a few years, I remember finding the hidden Weezer video on the Windows 95 CD, and I miss Ecto Coolers.
You do the math.
Shout out to any The Archer Bus/Cyborgface fans who make it this far. I see you.