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
{ | |
"definition":{ | |
"container":{ | |
"type":"hits", | |
"operator":"equals", | |
"rules":[ | |
{ | |
"element":"evar47", | |
"operator":"equals", | |
"value":"loggedin" |
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
## A script to download and archive Google search console analytics (formerly webmaster tools) | |
## | |
## searchConsoleR package created by Mark Edmondson (http://markedmondson.me) | |
## | |
## This script downloads and writes data to .csv for the last 90 days of data available | |
## load the required libraries | |
## (Download them with install.packages("googleAuthR") and install.packages("searchConsoleR") if necessary | |
library(googleAuthR) | |
library(searchConsoleR) |
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(shiny) | |
library(ggvis) | |
runApp(shinyApp( | |
ui <- fluidPage( | |
sidebarLayout( | |
sidebarPanel( | |
uiOutput("choose_dataset") | |
), | |
mainPanel(ggvisOutput("plot1"), ggvisOutput("plot2"), ggvisOutput("plot3")) | |
) |
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
{ | |
"real_time_settings":[ | |
{ | |
"metric":"instances", | |
"elements":[ | |
"page", "sitesection", "referringdomain" | |
], | |
"min_granularity":"1", | |
"name":"Content Real Time Report", | |
"ui_report":"true" |
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
{ | |
"reportDescription":{ | |
"source": "realtime", | |
"reportSuiteID":"rtd-example", | |
"metrics":[ | |
{"id":"pageviews"} | |
], | |
"elements": [ | |
{ | |
"id": "page", |
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(dplyr) | |
library(ggplot2) | |
library(lubridate) | |
#load steps data into data frame | |
dfsteps <- read.csv("C:\\Users\\praskry\\Desktop\\apple_health_data\\StepCount.csv") | |
str(dfsteps) | |
#make endDate in a date time variable POSIXct using lubridate with eastern time zone | |
dfsteps$endDate <-ymd_hms(dfsteps$endDate,tz="America/New_York") |
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
## filter pivot results | |
pivot_dim_filter1 <- dim_filter("eventLabel", | |
"REGEXP", | |
"%|#disqus") | |
pivot_dim_clause <- filter_clause_ga4(list(pivot_dim_filter1)) | |
pivme <- pivot_ga4("eventLabel", | |
metrics = c("totalEvents"), | |
maxGroupCount = 5, |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# | |
# Copyright 2012 Google Inc. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.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
library(googleAnalyticsR) | |
library(ggplot2) | |
#Authorized Google Analytics R- this will open a webpage | |
#You must be logged into your Google Analytics account on your web browser | |
ga_auth() | |
#Use google_analytics_account_list() to find the viewId. Make sure to replace this with your viewId. | |
my_id <- 94579701 |
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(googleAnalyticsR) | |
library(ggplot2) | |
#Authorized Google Analytics R- this will open a webpage | |
#You must be logged into your Google Analytics account on your web browser | |
ga_auth() | |
#Make sure to replace this with your viewId. You can use google_analytics_account_list() to find your viewId. | |
my_id <- 94579701 |
OlderNewer