mkfashion-sdk 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mkfashion-sdk-2.7.1.tgz +0 -0
- package/package.json +1 -1
- package/src/mkfashion.js +9 -4
|
Binary file
|
package/package.json
CHANGED
package/src/mkfashion.js
CHANGED
|
@@ -305,12 +305,17 @@ const mkfashion = {
|
|
|
305
305
|
this._log('Disponibilidade recebida', data)
|
|
306
306
|
|
|
307
307
|
// NOTA: availability check é decisão interna (mostra botão ou não) e
|
|
308
|
-
// NÃO
|
|
309
|
-
//
|
|
310
|
-
//
|
|
311
|
-
//
|
|
308
|
+
// NÃO emite evento pro collector — não traz valor analítico.
|
|
309
|
+
//
|
|
310
|
+
// MAS é o gatilho mais comum em PDPs: a partir daqui temos projectId
|
|
311
|
+
// confirmado e ativamos o auto-tracking (page_view, click, scroll,
|
|
312
|
+
// form, engagement). Sem isso, páginas onde o usuário só visualiza
|
|
313
|
+
// (sem clicar no try-on) ficariam invisíveis no collector.
|
|
312
314
|
try {
|
|
313
315
|
if (!this._config) this._config = { projectId: resolved, identifier }
|
|
316
|
+
if (!this._autoTrackInitialized && this.autoTrack !== false) {
|
|
317
|
+
this._initAutoTrack()
|
|
318
|
+
}
|
|
314
319
|
} catch (_) {}
|
|
315
320
|
|
|
316
321
|
return data
|