# Tag Management

> Understand how Third Party Tracking Tag works in AnyTrack to improve your conversion tracking accuracy. This feature helps ensure precise first party data collection.

Ad platforms not natively integrated with AnyTrack shouldn't mean manual pixel management. When you need to track conversions to [Reddit Ads](/docs/reddit-ads), Pinterest, or any platform outside AnyTrack's 300+ integrations in the [Integration Catalog](/docs/integration-catalog), you're left copying Tracking Tag code into every page—or worse, missing conversions entirely because the platform lacks server-side API support.

The `bind` command solves this. Every time AnyTrack captures a [standard event](/docs/standard-events) — form submit, outbound click, purchase — you can trigger custom Tracking Tag code automatically. Send conversion data to any third-party platform using the same clean event data AnyTrack collects. One implementation, automatic firing across your entire site.

## The building blocks of AnyTrack Tag Management:

1. Tracking Tag - the [Tracking Tag](/docs/anytrack-tag) that loads on your website.
2. AnyTrack AutoTrack - A Function that automatically tracks certain events emitted by your visitor's browsers. `PageView`, `OutboundClick`, `FormSubmit`, `ViewContent`.
3. **AnyTrack Conversion Tracking API** - A Server Side API that receives conversions from your Conversion Sources' API (ex: Shopify, [ClickFunnels 2.0](/docs/clickfunnels2), [WooCommerce](/docs/woocommerce), [Impact](/docs/impact), [ClickBank](/docs/clickbank)).
4. AnyTrack Conversion API - A Server Side API that sends conversions to your Ad Platforms Conversion API such as the [Facebook](/docs/facebook-ads) Conversion API, Google Analytics GA4 Measurement Protocol, [TikTok](/docs/tiktok-ads) Web Event API, [Taboola](/docs/taboola) Server to Server API.

> 📘 **Good to know**
>
> You can find each integration's whether Ad platform or Conversion Sources in the documentation with all the events that are currently being natively tracked.

If you want to fire a Tracking Tag that is not integrated in AnyTrack - for example Reddit - you can use the `bind` event snippet.

Events such as outbound clicks or form submissions, you can do so by using the `bind` command.

The `bind` command will allow you to run a JavaScript function every time AnyTrack captures a client-side event.

> 📘 **Good to know**
>
> Client-Side events such as `OutboundClick`, `FormSubmit`, and `AddToCart` are automatically tracked (AutoTrack) by the Tracking Tag.

> ⚠️ **Warning**
>
> This method is only recommended for users who are familiar with JavaScript.

## How does the Bind function work

1. Every time AnyTrack captures a client-side event such as `AddToCart`,

2. The `Bind` function fires the JavaScript snippet included in the function.

3. The event name you want to catch (ie. `OutboundClick`, `FormSubmit`, etc..)

4. A callback function will be called every time this event occurs.

**This example is the Reddit Event Tracking Tag:**

> ⚠️ **Warning**
>
> 1. The Tracking Tag must be in the `head` section of your website.
> 2. The Reddit Base Pixel must be in the `head` section of your website.

```javascript
AnyTrack('bind', 'OutboundClick',
  function(e) {
    rdt('track', 'ViewContent', {
      value: e.eventValue,
      currency: e.currency,
      transactionId: e.clickId
    });
  });
```

### Access Event Data

Each event standard properties emitted and tracked by AnyTrack is available and can be called.

For example, if you want to inject the `eventValue` in the event Tracking Tag, use the function `e.eventValue`.

Get the list of standard event attributes.

Assuming you got the following image that you want to call every time someone triggers an `OutboundClick` event.

```html
<img src="https://www.trackingpixel.foo/pixeltrack.pl?c=CLICK_ID" width="1" height="1" />
```

You can use the following code to trigger this pixel every time there is an **OutboundClick** event on your website:

```javascript
AnyTrack('bind', 'OutboundClick',
  function(e) {
    AnyTrack('postback',
      'https://www.3rdparty.foo/pixeltrack.pl?c=' +
      e.clickId);
  });
```

**Also use the Postback command in case you need to trigger the Tracking Tag via Server Side API**

```javascript
AnyTrack('postback',
  'https://t1.thirdparty.foo/xxxxx/collect?click_id={click_id}', {
    brand_name: e.brand_name,
    commission: e.eventValue,
    transactionId: e.transactionId
  });
```

## Related Resources

- [Install Tracking Tag](/docs/install-anytrack-tag)
- [Facebook Ads](/docs/facebook-ads)
- [Event Mapping](/docs/event-mapping)

<FaqAccordion
  title="Frequently Asked Questions"
  icon="fa-duotone fa-circle-question"
  items={[
    {
      question: "What is AnyTrack?",
      answer: "AnyTrack is a tag management platform that integrates ad Tracking Tags and tracks events both client-side and server-side."
    },
    {
      question: "How does the bind function work?",
      answer: "The bind function allows you to run a JavaScript function every time AnyTrack captures a client-side event."
    },
    {
      question: "Is JavaScript knowledge required to use the bind function?",
      answer: "Yes, familiarity with JavaScript is recommended to effectively use the bind function."
    },
    {
      question: "Can I use AnyTrack with platforms not natively integrated?",
      answer: "Yes, you can use the bind event snippet to fire Tracking Tags for platforms not natively integrated in AnyTrack."
    }
  ]}
/>
