EN

@core / pixels

1.0.1 ▾
verifiedMIT
GitHub

Conversion tracking with consent: GA4, Meta Pixel + Conversions API, TikTok Pixel + Events API, deduplicated event ids

Code7 filesContext~702 tokensscan passed

The exact tree that will be injected, after .genpmignore. Pinned to

src/lib/pixels/schema.tsread-only · abb4ca2
// Tablas de @core/pixels. Las recoge drizzle-kit vía src/lib/db/drizzle.config.ts.
import { jsonb, pgTable, text, timestamp } from 'drizzle-orm/pg-core';

/**
 * Atribución guardada al empezar un proceso (p. ej. el checkout) para enviar la conversión desde el servidor cuando
 * llegue el pago: consentimiento vigente e identificadores de primera parte. Caduca a los 7 días.
 */
export const pixelAttributions = pgTable('pixel_attributions', {
  key: text('key').primaryKey(),
  data: jsonb('data').$type<Record<string, unknown>>().notNull(),
  expiresAt: timestamp('expires_at', { withTimezone: true, mode: 'date' }).notNull(),
});

Report @core/pixels

Sign in with GitHub to report a package.