src/app/lib/analyticsUtils/index.js
File index.js
has 534 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import Cookie from 'js-cookie';
import { v4 as uuid } from 'uuid';
import pathOr from 'ramda/src/pathOr';
import path from 'ramda/src/path';
import Url from 'url-parse';
Function getDestination
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getDestination = (platform, statsDestination) => {
const destinationIDs = {
DEFAULT: 596068,
DEFAULT_TEST: 596068,
NEWS_PS: 598285,
Function buildRSSMarketingString
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const buildRSSMarketingString = href => {
const { query, hash } = new Url(href, true);
const queryWithParams = hash ? parameteriseHash(hash) : query;