Connecting Google Tag Manager to Your Bio Page

Updated January 13, 2026

Connect Google Tag Manager to your Link in Bio page for maximum flexibility in tracking. GTM lets you manage multiple tracking tags, create custom triggers, and deploy marketing pixels without editing code.

What is Google Tag Manager?

Google Tag Manager (GTM) is a tag management system that lets you deploy and manage marketing tags on your website without modifying code. With GTM connected to your bio page, you can:

  • Manage multiple tags: Deploy GA4, Meta Pixel, TikTok Pixel, and more from one interface
  • Create custom triggers: Fire tags based on specific user actions
  • Test before publishing: Preview changes before they go live
  • Version control: Roll back changes if something goes wrong
  • Advanced tracking: Create custom events and variables

When to use GTM: If you need advanced tracking customization or want to manage multiple tracking platforms from one place, GTM is the ideal choice. For simpler needs, connect individual pixels directly.

Requirements

  • Viraly Plan: Influencer plan or higher
  • Google Account: Access to Google Tag Manager
  • GTM Container: A web container for your bio page

Finding Your Container ID

Your Container ID starts with “GTM-” followed by alphanumeric characters.

  1. Go to Google Tag Manager
  2. Select your account and container
  3. Click Admin in the top navigation
  4. Under Container Settings, find your Container ID

The Container ID looks like: GTM-XXXXXXX

Connecting Google Tag Manager

There are two ways to connect Google Tag Manager to your Link in Bio page:

Method 1: From the Link in Bio Editor

  1. Open your bio page in the Viraly editor
  2. Click Analytics in the left sidebar
  3. Click the Pixel Tracking tab
  4. Select the Google Tag Manager tab
  5. Enter your Container ID (GTM-XXXXXXX)
  6. Click Save Changes

Method 2: From API Integrations

  1. Click on your workspace dropdown in the top right corner
  2. Select API Integrations
  3. Go to the Analytics & Tracking tab
  4. Find Google Tag Manager and click Connect
  5. Enter an Integration Name (e.g., “Google Tag Manager Account”)
  6. Enter your Container ID
  7. Click Save Integration

GTM will load on your bio page and push events to the dataLayer for your tags to consume.

DataLayer Events

Viraly automatically pushes these events to the GTM dataLayer:

Link Click Events

When visitors click any link on your bio page, this event is pushed:

{
  event: "link_click",
  link_type: "social" | "custom" | "tipping" | "auto-added",
  link_title: "The link title",
  link_url: "https://destination-url.com"
}

Content Interaction Events

When visitors interact with media or grid items:

{
  event: "content_interaction",
  content_type: "media" | "grid",
  content_title: "The content title"
}

Using GTM with Your Bio Page

Creating a Trigger for Link Clicks

  1. In GTM, go to TriggersNew
  2. Choose Custom Event
  3. Event name: link_click
  4. Save the trigger

Creating Variables for Link Data

Create Data Layer variables to access link information:

  1. Go to VariablesNew
  2. Choose Data Layer Variable
  3. Create variables for:
    • link_type
    • link_title
    • link_url

Example: Track Link Clicks in GA4 via GTM

  1. Create a GA4 Event tag
  2. Event name: bio_link_click
  3. Add parameters:
    • link_type: {{DLV - link_type}}
    • link_title: {{DLV - link_title}}
  4. Trigger: Your link_click custom event trigger
  5. Save and publish

Testing Your Setup

  1. In GTM, click Preview
  2. Enter your bio page URL
  3. Interact with your bio page
  4. Check the Tag Assistant for fired tags
  5. When satisfied, click Submit to publish