CustomPixel class

Provedor genérico: cole o snippet do fornecedor e pronto — cobre Taboola, Outbrain, Pinterest, TikTok, Hotjar, Clarity ou qualquer pixel futuro sem alterar a lib.

Inheritance

Constructors

CustomPixel({required String id, required String head, String track = 'function(ev,p){}', bool consentMode = false, String noscript = ''})
const

Properties

consentMode bool
Respeita o Google Consent Mode (init imediato). Padrão: não.
final
gtagLoaderId String?
ID usado no loader externo do gtag (só provedores Google retornam algo).
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
Identificador curto e único (ex.: ga4, meta).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

headHtml() String
Snippet JS de inicialização (sem a tag <script>).
override
noscriptHtml() String
HTML de fallback para <noscript> (vazio = nenhum).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
trackFn() String
Função JS function(ev,p){...} chamada a cada evento rastreado.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited