Skip to content

Instantly share code, notes, and snippets.

View piotr-sobczyk's full-sized avatar

Piotr Sobczyk piotr-sobczyk

View GitHub Profile
@piotr-sobczyk
piotr-sobczyk / tipser-tracking.js
Created February 9, 2021 09:14
Connecting Tipser Elements to Google Analytics with Enhanced E-commerce plugin
import _ from 'lodash';
const send = eventData => {
ga('send', eventData);
};
const setECommerceAction = (action, actionData) => {
ga('ec:setAction', action, actionData);
};