@playpilot/tpi 5.34.2 → 5.34.3
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/package.json
CHANGED
package/src/routes/+page.svelte
CHANGED
|
@@ -133,11 +133,6 @@
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
function inject(injections: LinkInjectionTypes = { aiInjections, manualInjections }): void {
|
|
136
|
-
// This is part of a split test were we are not injecting for 10% of users.
|
|
137
|
-
// The action is tracked as part of the UserLeft event in /components/UserJourney.svelte.
|
|
138
|
-
const hasAnyInjections = aiInjections?.length || manualInjections?.length
|
|
139
|
-
if (process.env.NODE_ENV !== 'test' && hasAnyInjections && getSplitTestVariantName(SplitTest.UserTimeSpent) === 'No Links') return
|
|
140
|
-
|
|
141
136
|
// Get filtered injections as they are shown on the page.
|
|
142
137
|
// Only update state if it they are different from current injections.
|
|
143
138
|
const filteredInjections = injectLinksInDocument(elements, injections)
|
|
@@ -78,7 +78,6 @@
|
|
|
78
78
|
existing_injections_count: totalInjectionElements.length,
|
|
79
79
|
shown_injections_count: shownInjections.length,
|
|
80
80
|
fired_events: window.PlayPilotLinkInjections?.tracked_events?.map(event => event.event) || [],
|
|
81
|
-
split_test_variant: getSplitTestVariantName(SplitTest.UserTimeSpent),
|
|
82
81
|
scroll_percentage: getScrollPercentage(),
|
|
83
82
|
})
|
|
84
83
|
}
|