> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://docs.staylive.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Marketing integrations

# Getting started with Marketing Integrations

This feature allows for seamless integration of popular marketing tools such as Google Analytics (Gtag.js), Google Tag Manager, Facebook Pixel, and site verification through HTML tags for both Facebook and Google, complementing our built-in website analytics supported by Plausible.

Whether you're looking to dive deeper into traffic analysis, refine your ad targeting, or boost your search engine optimization, Marketing Integrations offers a streamlined way to connect and utilize these advanced tools alongside our existing analytics.

## What integrations do we support?

We currently support the following marketing integrations:

- *Google Analytics*

- *Google Tag Manager*

- *Facebook Pixel*

## How do I get started?

Read the documentation on how you get the ID of the integration you are trying to connect.

### Articles:

**Google Analytics** 

[Getting started](https://support.google.com/analytics/answer/9304153)

Fetch your Google tag ID (Follow the first CMS step) and enter your ID into the *Google Analytics* input (It'll be prefixed by G-)

**Google Tag Manager** 

[Getting started](https://support.google.com/tagmanager/answer/6103696?hl=en)

Fetch your GTM-ID in the top right (It'll be prefixed by GTM- )

**Facebook Pixel** 

[Getting started](https://www.facebook.com/business/help/952192354843755?id=1205376682832142)

Fetch your Facebook pixel metaTag from Facebook. (It's going to be a long string of characters)

## Events

What events are we sending, and when are we sending them?

### begin_checkout_success
User started checking out

Event data:
checkoutData:
- type
- item

userData:
  - id
  - isLoggedIn
  - isInternal


### checkout_finished
User finished checking out, now sees "Done"-screen

Event data:
- checkoutStep

userData:
  - id
  - isLoggedIn
  - isInternal

### checkout_step
User progressed a step in the checkout process

Event data:
- checkoutStep

userData:
  - id
  - isLoggedIn
  - isInternal

### content_details
Loaded a video/livestream page

Event data:
- contentData
  - id
  - title
  - type (live/clip)

### subscription_start
User started a subscription

Event data:
- userData
  - id
  - segment ("new user")
  - subscription (the name of subscription)
  - isLoggedIn
  - isInternal

- subscriptionData
  - id
  - name
