Setup and Workflow (Mobile Apps)

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

  1. Go to tagmanager.google.com to create a Google Tag Manager account (or to access an existing account).
  2. Create a mobile app container in the account.
  3. Configure the container.
  4. Implement the Google Tag Manager SDK for Android or iOS.

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 for which you have access.

  1. From the 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.
  2. To add a new container, select Create Container... under the Container menu.
  3. Enter a container name and specify if this container will be for Android or for iOS apps.
  4. Click Create. Your container is now ready to be used in mobile apps.

Managing App Configuration from the Container

Use a Value Collection variable to define configuration values. Mobile App containers automatically provide predefined variables (such as "app name", "app version", "screen resolution", etc) that you can use in rules 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.

Adding, Updating and Publishing Tags

You’ll need to add tags to your new container and have your container published before your tag configurations will work on your mobile app:

  1. In Google Tag Manager, select an account.
    • To add a tag: Click New Tag. Select the tag type and specify triggers for when the tag should fire.
    • To edit a tag: (for example, update the triggers for when the tag should fire) Click the tag in the list. Make changes on the Edit Tag page.
    • To delete a tag: In the left nav bar, click Tags. Click the tag in the list. On the Edit Tag page, click the Delete button in the lower right corner of the screen.
  2. Preview your container configuration. Previewing gives you an opportunity to make sure your tag configurations are working as planned.
    • From any page in a container with unpublished changes, click the Publish button in the upper right corner of the screen, then click Preview and Debug. Read Previewing and Debugging to learn more.
  3. Publish the changes. When you are ready to make your changes live on your app, click the Publish button in the upper right corner of the screen, then click Publish Now.

How helpful is this article:

Feedback recorded. Thanks!
  • Not at all helpful
  • Not very helpful
  • Somewhat helpful
  • Very helpful
  • Extremely helpful