Setup and Workflow (Mobile Apps)

To use Google Tag Manager for Mobile in your mobile application:

  • go to google.com/tagmanager to create a Google Tag Manager account (or to access an existing account).
  • create a mobile app container in the account,
  • configure the container,
  • implement the Google Tag Manager SDK for Mobile Apps.

Creating an Account

The account is the top-most level of organization in Google Tag Manager. Typically, only one account is needed per company. All the company’s apps and websites can be be managed from this single account.

You can create and/or administer multiple Google Tag Manager accounts from a single Google account. Each time you sign in to Google Tag Manager, you’ll see the list of the Google Tag Manager accounts to which your Google Account has access.

  1. From the All Accounts page in Google Tag Manager, click New Account.
  2. Enter an account name and timezone, and click Save.

Creating a Container

Set up one container per mobile app. Each new major version of your app should have its own container. Name the container after the app and version, for example "exampleapp2_1".

  1. In Google Tag Manager, select an account. The Containers page appears.
  2. On the Containers page, click New Container.
  3. Enter a container name and select "Mobile Apps" under Where to Use Container.
  4. Select your app's platform (Android or iOS) and your desired time zone.
  5. Click Save (or Create Account and Container if you are creating this container as a part of creating an account.)

Managing App Configuration from the Container

Use a Value Collection macro to define configuration values. Mobile App containers automatically provide predefined macros (such as "app name", "app version", "screen resolution", etc) that you can use in rules to make to make configuration values conditional.

Implementing the Google Tag Manager for Mobile Apps SDK

The SDK documentation describes how to implement the SDK in your app so that it talks to the container.

Previewing

You must save your container before you can preview or publish it.

  1. In your container, go to Container Draft > Overview and click Create Version.
  2. Click Preview > Share Preview. This will generate a link that you can email to yourself and others. When the link is opened, it uses the still unpublished container, and behaves according to the macros and rules in that container.

Publishing

Changes made to a container do not take effect on a site or mobile app until you publish the container. So, once you've added or edited tags, rules, and macros in a container, you'll need to publish the container in order to make your additions and changes live on the site/app.

  1. Navigate to Versions > Overview and select a version from the table.
  2. Click Publish.