New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump / Upgrade Snowplow to v3 (RENAMED) #202
Comments
Update: I tried to recompile the entire sp.js tracker to bundle the Debugger into sp.js as a workaround but I still can't figure out how to instantiate the Debugger using Analytics
|
@DavidWells Referencing this issue here from Snowplow Tracker it makes sense that one should selectively load the JS for the debugger and not bundle it in sp.js as this would then mean that all of our websites would have LOG_LEVEL 4 Debugging on Does the Snowplow plugin currently provide for an ability to load the Debugger such as described?
|
Extra note: as the API changed between v2 and v3, compiling a v3 and trying to use it with this plugin will not work and events will not be tracked as expected. |
Hi @paulboocock very weird to see you here as well but thanks for being so attentive to this. The enableLinkClickTracking() and enableFormTracking() Plugin's using Analytics seem to work perfectly.
|
EDIT Apologies just read your other message on Snowplow. "The tracker plugins (like debugger) don't work with v2 of the tracker, and the getanalytics.io plugin only works with v2 at the moment. " I didn't know this - We are using a V3 sp.js with our GetAnalytics plugin. It all seems to work fine? |
So it'll work fine in most cases, any API call with no parameters will be 100% ok:
Anything with parameters will have changed between v2 and v3 which means all the typings are wrong in the
However, if you're using TypeScript then this won't compile because you'll get a type error. In
You're getting away with it because you're setting So this boils down to it'll "probably" work with v3 but I can't guarentee it and I haven't tested everything. So your milage may vary. Given this still uses the global
|
This is a really great and comprehensive response. I can confirm that I had a problem with v3 and following the Do you have an ETA on the V3 release for In the meanwhile I think we are going to switch to a V2 tracker for production applications. I can confirm that
|
@paulboocock Hey Paul, do you have an idea of when this plug-in can be updated to accommodate v3 ? It seems we are experiencing some issues where sumbit_form events are not being sent to the s3 bucket and I'm worried this is now related to using the v3 tracker Would you advise to downgrade to v2 in the meanwhile ? |
I probably won't get to a release out until October in reality, mainly because I'm going on holiday for a little while in a week. I would definitely suggest downgrading to v2 if using this plugin. There isn't any difference in terms of what can be tracking with the core tracker between v2 and v3, the main difference is the extensibility with plugins, which you can't use via this library at the moment. |
Hi @paulboocock I'm renaming this issue as it's really just about bumping the v2 to v3 for GetAnalytics We are launching a live version with Snowplow built in during the next 1-2 weeks and it would bring great peace of mind to know we're not running a v3 snowplow where we should be running a v2. We are already sponsoring this project - Happy to do whatever I can |
Hey @markojak |
Hey @paulboocock - Just checking in to see if you perhaps managed to do this yet? |
I made a little more progress last weekend but haven't quite finished it yet. Just trying to figure out the cleanest way to get the new plugins loaded in. I'll make sure to @ you here and back on the JS Tracker repository in the issue I left open, once an update is out. |
I need to be able to enable the Snowplow Debugger Plugin which seems to not ship with the snowplow tracker (sp.js) but only with their Snowplow plugins.umd.zip
@DavidWells How would the Analytics wrapper enable me to load additional Snowplow plugins that are not already included in sp.js ?
The way that the GetAnalytics seems to handle existing plugins is with the
instance.plugins.snowplow.enableActivityTracking({ })
As per Snowplow documentation here they suggest to do the following
When trying to do
instance.plugins.snowplow.enableDebugger()
then we will get a"AppContext.tsx:139 Uncaught (in promise) TypeError: instance.plugins.snowplow.enableDebugger is not a function"
However with
instance.plugins.snowplow.enableFormTracking()
this works because it ships with sp.jsThe text was updated successfully, but these errors were encountered: