Fingermark Google Analytics library
All GA requests are set up in this library, any other library/package can request those from this lib.
Methods
registerProductImpression
Object sent:
const obj = {
sessionId,
position,
productVariant,
categoryName,
product,
listName,
storeAddress,
organisation,
serial,
upsell,
};
registerProductClick
Object sent:
const obj = {
sessionId,
position,
productVariant,
categoryName,
product,
listName,
storeAddress,
organisation,
serial,
upsell,
};
registerProductView
Object sent:
const obj = {
sessionId,
position,
productVariant,
categoryName,
product,
listName,
storeAddress,
organisation,
serial,
upsell,
};
registerProductAddedToCart
Object sent:
const obj = {
sessionId,
productVariant,
categoryName,
product,
price,
quantity,
listName,
storeAddress,
organisation,
serial,
upsell,
};
registerProductPurchase
Object sent:
const obj = {
totalRevenue,
sessionId,
products,
storeAddress,
organisation,
serial,
paymentType,
orderNumber,
orderId,
};
registerProductCheckout
Object sent:
const obj = {
sessionId,
productVariant,
categoryName,
product,
price,
quantity,
listName,
storeAddress,
organisation,
serial,
upsell,
};
How to use
import { registerProductClick } from '@fingermarkglobal/google-analytics';
registerProductClick({
sessionId,
position,
productVariant,
categoryName,
product,
listName,
storeAddress,
organisation,
serial,
upsell,
});