---
title: Google Tag Manager Setup
description: "**Requires Preferred license.** Google Tag Manager (GTM) gives you a flexible way to manage PetMatchPro analytics tracking alongside other marketing and analytics tags. This guide covers how to set up GTM to capture PetMatchPro events. ## Prerequisites - A Google…"
url: "https://petmatchpro.com/docs/google-tag-manager-setup/"
updated: "2026-10-26"
category: "Analytics & Tracking"
---

# Google Tag Manager Setup

**Requires Preferred license.**

Google Tag Manager (GTM) gives you a flexible way to manage PetMatchPro analytics tracking alongside other marketing and analytics tags. This guide covers how to set up GTM to capture PetMatchPro events.

## Prerequisites

- A Google Tag Manager account and container
- GTM installed on your WordPress site
- PetMatchPro Analytics tracking enabled

## Step 1: Set Up Your GTM Container

1. Go to [tagmanager.google.com](https://tagmanager.google.com).
2. Create a container for your website if you don't have one.
3. Install the GTM snippet on your WordPress site (using a plugin like "Insert Headers and Footers" or your theme's header settings).

## Step 2: Create a GA4 Configuration Tag

1. In GTM, go to **Tags > New**.
2. Select **Google Analytics: GA4 Configuration**.
3. Enter your GA4 Measurement ID (`G-XXXXXXXXXX`).
4. Set the trigger to **All Pages**.
5. Name it "GA4 Configuration" and save.

## Step 3: Create Event Tags for PetMatchPro

Create GA4 Event tags to capture PetMatchPro onclick events:

### Detail View Event Tag

1. Create a new tag: **Google Analytics: GA4 Event**.
2. Select your GA4 Configuration tag.
3. Event name: `pmp_detail_view`.
4. Add event parameters for animal_id, animal_name, species, method_type.

### Action Click Event Tag

1. Create a new tag: **Google Analytics: GA4 Event**.
2. Event name: `pmp_action_click`.
3. Add event parameters for action_type, animal_id, animal_name.

### Share Click Event Tag

1. Create a new tag: **Google Analytics: GA4 Event**.
2. Event name: `pmp_share_click`.
3. Add event parameters for share_platform, animal_id, animal_name.

## Step 4: Set Up Triggers

Create triggers that fire your event tags when PetMatchPro onclick events occur:

1. Go to **Triggers > New**.
2. Select **Custom Event** as the trigger type.
3. Enter the PetMatchPro event name (e.g., `pmp_detail_view`).
4. Assign the trigger to the corresponding event tag.

## Step 5: Test with Preview Mode

1. In GTM, click **Preview** in the top right.
2. Enter your website URL.
3. Browse your PetMatchPro search and detail pages.
4. Verify that events fire correctly in the GTM debug panel.
5. Check that event parameters contain the expected data.

## Step 6: Publish Your Container

Once you've verified everything works in preview mode:

1. Click **Submit** in the top right of GTM.
2. Add a version name (e.g., "PetMatchPro Event Tracking").
3. Click **Publish**.

## Tips

- **Always test in preview mode** before publishing to ensure events fire correctly.
- **Use descriptive tag names** like "GA4 - PMP Detail View" so you can find them later.
- **Mark key events as conversions** in GA4 (e.g., adoption application clicks) to track what matters most.

## Next Steps

- [GA4 Configuration](/docs/ga4-configuration/) — Direct GA4 setup (alternative to GTM)
- [Leveraging Analytics](/docs/leveraging-analytics/) — Use data to improve adoptions

 Google Tag Manager Setup ultima modifica:  2026-03-25T19:23:38-04:00 da PetMatchPro
