Closed EniasCailliau closed 4 months ago
@DavidWells Please help :(
To debug you gotta look at the DOM to verify that GA and Amplitude are loaded.
Then, simulate the tracking call and verify the network requests are being made by looking at the networks tab.
It's possible that one of the analytics providers is rejecting the request because of how the data is formatted (products.map((product) => productToItem(product))
)
You can also log tracking calls with a console plugin like so
const debuggerPlugin = {
name: 'my-debugger',
track: ({ payload, instance }) => {
console.log('Track from debugger', payload)
console.log(instance.getState().plugins)
}
}
Problem: Events are only sent to 1 of my plugins.
Long description:
Tried looking but this is not a known issue?
Here's my analytics.ts code (NextJS)
I then call logPurchaseItem(product, user); from my code.