This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create and Download Usage Reports for All Websites | |
(function() { | |
const convertDataToCSV = (data) => { | |
let result = ''; | |
let ctr = 0; | |
if (data === null || !data.length) { | |
return null; | |
} | |
columnDelimiter = ','; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function recordingRatePerPage() { | |
const config = { | |
recordingRules: [ | |
['base', '*', 5], | |
], | |
allowReroll: false, | |
cookieKey: 'mf_recordingRules', | |
}; | |
const getLocationURI = () => { | |
let res = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This snippet of code will tag the pageview with the | |
// QueryString Variables found in the mfQueryVariables array | |
var mfQueryVariables = ["ref"]; | |
function mfGetQueryVariable(variable) { | |
var query = window.location.search.substring(1); | |
var vars = query.split("&"); | |
for (var i = 0; i < vars.length; i++) { | |
var pair = vars[i].split("="); |