Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
sendPageChange(path, search='') {
let page = path + search;
ReactGA.set({page});
ReactGA.pageview(page);
}
export default function logPageView() {
ReactGA.set({ page: window.location.pathname });
ReactGA.pageview(window.location.pathname);
}
export function logPageView() {
ReactGA.set({ page: window.location.pathname + window.location.search })
ReactGA.pageview(window.location.pathname + window.location.search)
}
import React from "react";
import ReactDOM from "react-dom";
import ReactGA from "react-ga";
import { ThemeProvider } from "styled-components";
import "./index.css";
import App from "./App";
if (process.env.NODE_ENV === "production") {
ReactGA.initialize("UA-108352892-1");
ReactGA.set({ page: window.location.pathname + window.location.search });
ReactGA.pageview(window.location.pathname + window.location.search);
}
const theme = {
mainMargin: {
desktop: "200px",
tablet: "50px",
phone: "10px"
}
};
ReactDOM.render(
,
document.getElementById("root")
);
function logPageView() {
ReactGA.set({ page: window.location.pathname });
ReactGA.pageview(window.location.pathname);
}
import { Provider } from 'react-redux'
import { ConnectedRouter } from 'react-router-redux'
import ReduxToastr from 'react-redux-toastr'
import { I18nextProvider } from 'react-i18next'
import { i18nInitialized, languageChanged, namespaceLoaded } from 'Actions/i18n'
import i18n from './i18n'
import App from 'Components/App'
import store from './store'
import history from './history'
import ReactGA from 'react-ga'
ReactGA.initialize('UA-100689193-1')
ReactGA.set({
dimension1: 'faast'
})
if (!window.faast) window.faast = {}
window.faast.intervals = {
orderStatus: [],
txReceipt: []
}
const Root = () => {
i18n.on('languageChanged', (lng) => {
store.dispatch(languageChanged(lng))
})
i18n.on('loaded', (loaded) => {
store.dispatch(namespaceLoaded(loaded))
})
const trackPage = page => {
GoogleAnalytics.set({
page
});
GoogleAnalytics.pageview(page);
};
payload,
}) {
yield put({
type: 'UPDATE_USER_PROFILE',
payload,
});
const {
email,
name,
} = payload;
IntercomAPI('update', {
user_id: email,
email,
name,
});
ReactGA.set({
email,
});
});
}
const trackPage = (page) => {
ReactGA.set({ page });
ReactGA.pageview(page);
window._czc && window._czc.push(["_trackPageview", page]);
};
const trackPage = (page: string) => {
ReactGA.set({ page, ...options })
ReactGA.pageview(page)
}