Posts

Showing posts from 2019

Google Analytics App+Web Property: setting up an Event tag

Image
This is part of a series on Google Analytics App+Web Property. A brief walkthrough of the setup Setting up a Configuration tag Setting up an Event tag (this post) In my previous post, I had shared my learnings while setting up a Google Analytics App+Web Property's Configuration tag, which included not one, not two, but three gotchas. That experience was quite an eye-opener for someone who is familiar with how things "just work" with Google Analytics Universal Analytics tags. While a Configuration tag is good enough to get started, the real "fun" comes with Event tags. These tags are used to track users' interactions with your website, like clicks on links or form submissions. Some events have already been automatically setup in my App+Web Property's web data stream's "Enhanced Measurement" in Google Analytics (GA), like scrolls, file downloads and outbound link clicks. Once again, my tags are setup in Google Tag Manager (GTM),

Google Analytics App+Web Property: setting up a Configuration tag

Image
This is part of a series on Google Analytics App+Web Property. A brief walkthrough of the setup Setting up a Configuration tag (this post) Setting up an Event tag In my previous post, I had provided a walkthrough of setting up a Google Analytics App+Web Property. If you don't know what this App+Web Property is or you want to learn again how to setup that property, head over to that post to read my review. But an analytics property is kinda useless if you don't track any data to it. So in this post, I'll share how to setup some tags with Google Tag Manager (GTM) for a website, and what results you can expect from those tags. What you'll find in this post: My App+Web Configuration tag The resulting network hits to GA Three gotchas that you must watch out for! Here's my App+Web Property's web data stream in Google Analytics (GA): I've left it with its default "Enhanced Measurement" setup. That means besides tracking Page views &q

Google Analytics App+Web Property: a brief walkthrough of the setup

Image
This is part of a series on Google Analytics App+Web Property. A brief walkthrough of the setup (this post) Setting up a Configuration tag Setting up an Event tag On 31 July 2019, Google Analytics a new way to measure app and web usage. It uses a new property (data store) called, creatively enough, "App+Web Property" . You can read the announcement at your own time. By the way, I'm just going to put this out here first and foremost. If you depend on Enhanced Ecommerce, in particular, if you use product-scoped Custom Dimensions and/or Metrics, then you might want to hold off using the App+Web property for now. As with Firebase measurement, the App+Web property does not have any support for product-scoped Custom Dimensions/Metrics (yet). To setup a new App+Web property in Google Analytics, create a new Property like you would inside GA's interface. Go to your Analytics admin. Choose the Account where you want to setup your App+Web Property. It can be an

Query BigQuery conveniently with an Apps Script library

If you use Google Apps Script a lot, and particularly for working with BigQuery, then you might be interested in this library: BigQuery Helper . Just include the library's key "MjmmwOcqTeIFoRwuA8KZV5MtILCH4r83t" in your Apps Script script and you're ready to go! Why use my library? What this library does is it saves you from writing all of the "plumbing" code to interact with BigQuery. You can then concentrate on writing your query and any other code for manipulating the queried data. Increase your productivity! The Apps Script way – not productive! Apps Script's developer documentation for BigQuery has some sample code for working with BigQuery. But it forces you to write this code:   var queryResults = BigQuery.Jobs.query(request, projectId);   var jobId = queryResults.jobReference.jobId;   // Check on status of the Query Job.   var sleepTimeMs = 500;   while (!queryResults.jobComplete) {     Utilities.sleep(sleepTimeMs);     sleepTime