Appearance
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:
js
const obj = {
sessionId,
position,
productVariant,
categoryName,
product,
listName,
storeAddress,
organisation,
serial,
upsell,
};registerProductClick
Object sent:
js
const obj = {
sessionId,
position,
productVariant,
categoryName,
product,
listName,
storeAddress,
organisation,
serial,
upsell,
};registerProductView
Object sent:
js
const obj = {
sessionId,
position,
productVariant,
categoryName,
product,
listName,
storeAddress,
organisation,
serial,
upsell,
};registerProductAddedToCart
Object sent:
js
const obj = {
sessionId,
productVariant,
categoryName,
product,
price,
quantity,
listName,
storeAddress,
organisation,
serial,
upsell,
};registerProductPurchase
Object sent:
js
const obj = {
totalRevenue,
sessionId,
products,
storeAddress,
organisation,
serial,
paymentType,
orderNumber,
orderId,
};registerProductCheckout
Object sent:
js
const obj = {
sessionId,
productVariant,
categoryName,
product,
price,
quantity,
listName,
storeAddress,
organisation,
serial,
upsell,
};How to use
js
import { registerProductClick } from '@fingermarkglobal/google-analytics';
registerProductClick({
sessionId,
position,
productVariant,
categoryName,
product,
listName,
storeAddress,
organisation,
serial,
upsell,
});