Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

TransactionData

import type { TransactionData } from "https://googleapis.deno.dev/v1/analyticsreporting:v4.ts";

Represents details collected when the visitor performs a transaction on the page.

interface TransactionData {
transactionId?: string;
transactionRevenue?: number;
transactionShipping?: number;
transactionTax?: number;
}

§Properties

§
transactionId?: string
[src]

The transaction ID, supplied by the e-commerce tracking method, for the purchase in the shopping cart.

§
transactionRevenue?: number
[src]

The total sale revenue (excluding shipping and tax) of the transaction.

§
transactionShipping?: number
[src]

Total cost of shipping.

§
transactionTax?: number
[src]

Total tax for the transaction.