# Advertising Integrations

> Connect Advertisings | AnyTrack with AnyTrack to enable Conversion API tracking and campaign reporting. Send server-side conversion data for better ad optimization and accurate attribution using both client-side JavaScript Tag and server-side API.

AnyTrack simplifies advertising data collection by automating event tracking across all your ad Tracking Tags using both client-side JavaScript tags and server-side APIs. This guide explains how AnyTrack orchestrates your advertising data to maximize conversion tracking accuracy.

<Image align="center" border={true} src={readmeAsset1} className="border" />

<br />

<Callout icon="📘" theme="info">
  **Good to know:** Client-side and <a href='/docs/server-side-tracking'>server-side tracking</a> work together seamlessly. Both are interlinked and necessary to accurately track and attribute your conversions across platforms.
</Callout>

## How AnyTrack Works

### Data Collection

AnyTrack automatically collects first-party data including user sessions, cookies, campaign-specific parameters, and key performance metrics. This gives you a complete view of your customer journey.

### Automatic Event Tracking

Track critical user interactions automatically without manual configuration. AnyTrack captures:

* User engagements and interactions
* Complete eCommerce checkout flows
* Product clicks and views
* Form submissions and leads

### Server-Side Conversion API

Server-side tracking bypasses ad blockers and browser limitations, ensuring conversion data reaches ad platforms reliably. Essential for:

* Lead generation campaigns
* eCommerce funnels with complex sales cycles
* Recurring subscriptions and transactions
* Affiliate marketing programs

<Callout icon="👍" theme="success">
  **How it works:** Configure your ad platform Conversion APIs or postback URLs directly in the AnyTrack dashboard. Simply authenticate via API or add your tracking ID/pixel ID. AnyTrack handles the rest.
</Callout>

<Image align="center" border={true} src={readmeAsset2} className="border" />

## Unified Tag Management

AnyTrack acts as a central hub that loads and manages all your ad Tracking Tags and tracking snippets. Instead of manually implementing multiple tracking codes, AnyTrack automatically collects event data and synchronizes it across all your connected ad platforms for smooth audience building.

### How It Simplifies Your Workflow

When you fire an AnyTrack event (like `FormSubmit`), it automatically ingests the data and distributes it to all connected ad platforms via their `Conversion APIs`. Maintain one tracking implementation instead of separate snippets for each platform.

### Before & After Comparison

**📛 Before AnyTrack**

You had to manually implement and maintain separate tracking code for each ad platform:

```javascript
fbq('track', 'SubmitApplication', {
  content_name: 'Auto Insurance',
  content_category: 'Quote',
  value: 40.00,
  currency: 'USD'
});

gtag('event', 'FormSubmit', {
  'send_to': 'AW-CONVERSION_ID/AW-CONVERSION_LABEL',
  'value': 40.00,
  'currency': 'USD'
});
```

✅ **Now** fire only the AnyTrack snippet, which automatically sends corresponding events via the `Conversion API` to all connected ad platforms.

### AnyTrack Event Snippet 👇

```javascript AnyTrack Event Snippet
var `click_id` = AnyTrack('trigger', 'FormSubmit', {
  value: 40.00,
  currency: 'USD',
  label: 'Auto Insurance',
  form: 'Quote'
});
```

<br />

### Event Mapping

Map custom events to Facebook Ads, Google Ads, or any ad platform's standard events or custom event names. For a coaching business with a long sales cycle, track key lifecycle events like:

* `FirstMeeting`
* `DemoBooking`
* `FirstPurchase`
* `Upsell`

<Image align="center" border={true} src={readmeAsset3} className="border" />

### Predefined UTM Tracking Templates

Use pre-built tracking URL templates that combine standard UTM parameters with platform-specific variables for complete campaign tracking.

```http Facebook UTM Tracking Template
`utm_source`=facebook&`utm_medium`=cpc&`utm_content`={{adset.name}}&`utm_campaign`={{campaign.name}}&`utm_term`={{ad.name}}&utm_id={{campaign.id}}&ad_id={{ad.id}}&adset_id={{adset.id}}&placement={{placement}}&site_source_name={{site_source_name}}
```

### Custom Conversion Goals

Create conversion goals tailored to your specific business objectives, then automatically synchronize them across all your advertising channels for consistent reporting and optimization.

### Enhanced Audience Building

Use both on-site and offline conversion data to build sophisticated audiences. Create cross-network audience segments and apply any marketing data across multiple ad platforms for more effective targeting.

### Platform-Specific Settings

Access advanced configurations for specific platforms including Google Analytics Enhanced eCommerce tracking, Google Ads Enhanced Conversions, and <a href='/docs/facebook-custom-conversions'>Facebook Custom Conversions</a>.

<br />

## Related Articles

- [Ads Integrations](/docs/ads-integrations)
- [Stripe Integration](/docs/stripe)
- [WordPress Integrations Options](/docs/wordpress-integrations-options)
