Closed matthew-dean closed 1 year ago
You can’t have duplicate plug-in name spaces. Plugins are objects if you log them out you can see the plug-in names. For the 2nd Instance you need to spread a new “name” onto the second plug-in object
You can see how to add multiple instances of a analytics provider here: https://github.com/DavidWells/analytics/issues/47#issuecomment-627127712
You just need to spread a new name
key and thats how you enable/disable
The docs have code like this:
However, it's not clear how
google-analytics
is mapped togoogleAnalytics
? I would have guessed it's converting dash-case to camelCase, but then later it has this example:Okay, so then I thought maybe this was an internal name defined in the plugin? If that's the case, then how do you do this: