<!--
canonical_url: https://university.spiffy.co/integrations/google/google-analytics-gtm-events/
post_id: 5257
post_type: post
last_modified: 2023-03-31T04:36:53+00:00
generated_at: 2026-04-16T16:18:10+00:00
-->

# Google Analytics Events

When you integrate Google Analytics (GA) with Spiffy we’ll handle passing checkout events and purchase data events.

## Events Tracked

We currently track the following events:

- `page_view`: Triggered when a user views a page on the Spiffy (upsell, checkout, etc.).
- `begin_checkout`: Triggered when a user loads the checkout process.
- `purchase`: Triggered when a user completes a purchase on Spiffy. This is sent at the END of the checkout flow to ensure things like upsells get included.

## Event Data

These events can be accessed via debug mode or within your analytics account.

### Purchase Event Example

The `purchase` event is triggered when a user completes a purchase through one of your checkouts. Here is an example of the data that’s sent:

```
{
    'transaction_id': 'SPIFFY-12345',
    'affiliation': 'Spiffy Checkout Demo',
    'value': 50.00,
    'tax': 9.99,
    'shipping': 0,
    'coupon': 'SPF25',
    'currency': 'USD',

    "items": [
        {
            'name': 'Product A',
            'id': 'PROD-123',
            'price': 49.99,
            'currency': 'USD',
        },
        {
            'name': 'Product B',
            'id': 'PROD-456',
            'price': 0.01,
            'currency': 'USD',
        },
    ],
}

```

### Begin Checkout Event Example

The `begin_checkout` event is triggered when a user initiates the checkout process. Here is an example of the data that’s sent:

```
{
    'affiliation': 'Spiffy Checkout Demo',
    'value': 50.00,
    'tax': 9.99,
    'currency': 'USD',

    "items": [
        {
            'name': 'Product A',
            'id': 'PROD-123',
            'price': 49.99,
            'currency': 'USD',
        },
        {
            'name': 'Product B',
            'id': 'PROD-456',
            'price': 0.01,
            'currency': 'USD',
        },
    ],
}

```
