snowplow-javascript-tracker icon indicating copy to clipboard operation
snowplow-javascript-tracker copied to clipboard

Feature request: Add WebView plugin as optional feature to the javascript-tracker

Open lari opened this issue 2 months ago • 0 comments

Is your feature request related to a problem? Please describe.

We can't include the WebView plugin on our site so that it would be included in the same javascript bundle. Instead, we need to add it as a separate javascript file.

Describe the solution you'd like

If I add export const webView = true; to tracker.config.ts and build the project with npx @microsoft/rush build, the WebView plugin would be included in the resulting trackers/javascript-tracker/dist/sp.js file.

Describe alternatives you've considered

  • Loading the plugin separately to the site.
  • Forking this repository and adding it myself.

Additional context

N/A

lari avatar Oct 09 '25 06:10 lari