@phantomstudios/ft-lib
Advanced tools
Comparing version 0.3.0-rc9 to 0.4.0
@@ -9,2 +9,3 @@ import { gaTracker } from "../gaTracker"; | ||
sendGTMPageViewYN?: boolean; | ||
sendBrandedContent?: boolean; | ||
disableAppFormatTransform?: boolean; | ||
@@ -11,0 +12,0 @@ } |
@@ -24,2 +24,3 @@ "use strict"; | ||
sendGTMPageViewYN: true, | ||
sendBrandedContent: true, | ||
}; | ||
@@ -62,3 +63,5 @@ var FTTracking = /** @class */ (function () { | ||
this.oTracker.broadcastPageView(); | ||
this.oTracker.broadcastBrandedContent(); | ||
if (this.options.sendBrandedContent) { | ||
this.oTracker.broadcastBrandedContent(); | ||
} | ||
this.scrollTracker.reset(); | ||
@@ -65,0 +68,0 @@ if (this.options.sendGTMPageViewYN) { |
@@ -46,3 +46,5 @@ "use strict"; | ||
this.broadcastPageView(); | ||
this.broadcastBrandedContent(); | ||
if (options.sendBrandedContent) { | ||
this.broadcastBrandedContent(); | ||
} | ||
} | ||
@@ -49,0 +51,0 @@ Object.defineProperty(oTracker.prototype, "config", { |
@@ -120,3 +120,3 @@ "use strict"; | ||
if (config.hasVideo && config.app.toLowerCase() === "article") { | ||
config.app === "Article_with_video"; | ||
config.app = "Article_with_video"; | ||
} | ||
@@ -123,0 +123,0 @@ delete config.hasVideo; |
{ | ||
"name": "@phantomstudios/ft-lib", | ||
"description": "A collection of Javascript UI & tracking utils for FT sites", | ||
"version": "0.3.0-rc9", | ||
"version": "0.4.0", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "types": "lib/index.d.ts", |
@@ -15,2 +15,3 @@ import { consentMonitor } from "../consentMonitor"; | ||
sendGTMPageViewYN?: boolean; | ||
sendBrandedContent?: boolean; | ||
disableAppFormatTransform?: boolean; | ||
@@ -23,2 +24,3 @@ } | ||
sendGTMPageViewYN: true, | ||
sendBrandedContent: true, | ||
}; | ||
@@ -73,3 +75,5 @@ | ||
this.oTracker.broadcastPageView(); | ||
this.oTracker.broadcastBrandedContent(); | ||
if (this.options.sendBrandedContent) { | ||
this.oTracker.broadcastBrandedContent(); | ||
} | ||
this.scrollTracker.reset(); | ||
@@ -76,0 +80,0 @@ if (this.options.sendGTMPageViewYN) { |
@@ -49,3 +49,5 @@ import oTracking from "@financial-times/o-tracking"; | ||
this.broadcastPageView(); | ||
this.broadcastBrandedContent(); | ||
if (options.sendBrandedContent) { | ||
this.broadcastBrandedContent(); | ||
} | ||
} | ||
@@ -52,0 +54,0 @@ |
@@ -138,3 +138,3 @@ import { | ||
if (config.hasVideo && config.app.toLowerCase() === "article") { | ||
config.app === "Article_with_video"; | ||
config.app = "Article_with_video"; | ||
} | ||
@@ -141,0 +141,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
223312
3777