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
REQUEST: | |
{ | |
"reportDescription":{ | |
"dateFrom":"2013-01-01", | |
"dateTo":"2013-11-16", | |
"reportSuiteID":"", | |
"segment_id":"53c059aee4b07cd3c4332163", | |
"metrics":[ | |
{ | |
"id":"bouncerate" |
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
library(devtools) | |
library(jsonlite) | |
library("RSiteCatalyst") | |
text <- '{"report":{"type":"ranked","elements":[{"id":"trackingcode","name":"External Campaign ID (cid)","classification":"Campaign Type"},{"id":"trackingcode","name":"External Campaign ID (cid)","classification":"Campaign Name"}],"reportSuite":{"id":"","name":""},"period":"Mon. 17 Nov. 2014 - Sun. 23 Nov. 2014","metrics":[{"id":"event31","name":"Emails Clicked (ET Total)","type":"number","decimals":0,"latency":0,"current":false},{"id":"event95","name":"Emails Clicked (ET Unique)","type":"number","decimals":0,"latency":0,"current":false},{"id":"event29","name":"Emails Delivered (ET Total)","type":"number","decimals":0,"latency":0,"current":false},{"id":"event30","name":"Emails Opened (ET Total)","type":"number","decimals":0,"latency":0,"current":false},{"id":"event94","name":"Emails Opened (ET Unique)","type":"number","decimals":0,"latency":0,"current":false},{"id":"event38","name":"Emails Sent (ET Total)","type":"number","decimals":0,"latency":0," |
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
$.ajax({ | |
url : document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=' + encodeURIComponent("FEED_URL"), | |
dataType : 'json', | |
success : function (data) { | |
if (data.responseData.feed && data.responseData.feed.entries) { | |
$.each(data.responseData.feed.entries, function (i, e) { | |
console.log("------------------------"); | |
console.log("title : " + e.title); | |
console.log("author : " + e.author); | |
console.log("description: " + e.description); |
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
#!RScript | |
# | |
# USAGE: RScript geocode.R --in=input.xlsx --out=output.xslx --ip=column_name_of_ip_address_field | |
# | |
initial.options <- commandArgs(trailingOnly = FALSE) | |
file.arg.name <- "--file=" | |
script.name <- sub(file.arg.name, "", initial.options[grep(file.arg.name, initial.options)]) | |
script.basename <- dirname(script.name) | |
script.in <- sub("--in=", "", initial.options[grep("--in=", initial.options)]) | |
script.out <- sub("--out=", "", initial.options[grep("--out=", initial.options)]) |
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
for i in *.csv; do zip -r $(echo "$i" | tr '.csv' '.zip') "$i"; rm -rf "$i"; done |
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
/** | |
* Utility function that can be used across pages... not AA dependent | |
*/ | |
var UTILS = UTILS || ( function( $ ) { | |
function cloneArray( array) { | |
return array.slice(0); | |
} | |
function parseProductString ( products ) { |
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
window.ana = window.ana || {}; | |
/** | |
* Utility function that can be used across pages... not AA dependent | |
*/ | |
var UTILS = window.ana.UTILS || ( function( $ ) { | |
function cloneArray( array) { | |
return array.slice(0); | |
} |
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
//Visiting Cart page while adding product to empty cart | |
[ | |
{ | |
"pageName":"Store:checkout:shopping_cart", | |
"siteProperty":"AICPASTORE", | |
"siteSection":"Shopping Cart Page", | |
"siteSubSection":"TBD" | |
}, | |
{ |
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
/* | |
* Plugin: getVisitNum - version 3.0 | |
*/ | |
s.getVisitNum=new Function("tp","c","c2","" | |
+"var s=this,e=new Date,cval,cvisit,ct=e.getTime(),d;if(!tp){tp='m';}" | |
+"if(tp=='m'||tp=='w'||tp=='d'){eo=s.endof(tp),y=eo.getTime();e.setTi" | |
+"me(y);}else {d=tp*86400000;e.setTime(ct+d);}if(!c){c='s_vnum';}if(!" | |
+"c2){c2='s_invisit';}cval=s.c_r(c);if(cval){var i=cval.indexOf('&vn=" | |
+"'),str=cval.substring(i+4,cval.length),k;}cvisit=s.c_r(c2);if(cvisi" | |
+"t){if(str){e.setTime(ct+1800000);s.c_w(c2,'true',e);return str;}els" |
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
/* | |
* Utility Functions: apl, p_c, p_gh, split, replace, join | |
*/ | |
s.apl=new Function("L","v","d","u","" | |
+"var s=this,m=0;if(!L)L='';if(u){var i,n,a=s.split(L,d);for(i=0;i<a." | |
+"length;i++){n=a[i];m=m||(u==1?(n==v):(n.toLowerCase()==v.toLowerCas" | |
+"e()));}}if(!m)L=L?L+d+v:v;return L"); | |
s.p_c=new Function("v","c","" | |
+"var x=v.indexOf('=');return c.toLowerCase()==v.substring(0,x<0?v.le" | |
+"ngth:x).toLowerCase()?v:0"); |
OlderNewer