Package: dscigametrics
dscigametricsdscigametrics, orData Science Google Analytics Metrics, is a python package that provides a set of ready-made functions that can help users with minimual coding skills easily digest and analyse advertising data obtained from Google Analytics. While Google Analytics allows users to easily download data as a csv file, the resulting spreadsheet is an intimidating and unituitive block of dense information. Instead of trying to analyse this in excel, users can instead load it into a python script as a pandas dataframe and let this package do the analysis work for them!Fuctions in the packagecompute_metricssummarises general performance of campaign based on four metrics.stat_summarysummarises variance of campaign performance based on four metrics.daily_plotvisualises performance changes of campaign based on four metrics.find_campaignsidentifies the best and worst performing campaigns based on a selected metric.Where this package fits inThe popularity and influence of Google Analytics means that there is already a decent number of related python packages, such as googleanalytics, which can be foundhereon PyPI. However the majority of these packages provide functionality that allows developers to interact with the Google Analytics API, which presupposes a fairly high level of technical skill. Our package is intended to help users with a novice familiarity with python by operating directly on downloaded GA data sets instead.InstallationSince the package has not uploaded to PyPI, this is not feasible for now. Please see thedeveloper installation instructionsto install it.$pipinstalldscigametricsDeveloper Installation InstructionStep 1: Clone the Repositorygitclonegit@github.com:UBC-MDS/Group_9_GA_Metrics.gitcdGroup_9_GA_Metrics# Navigate to the cloned repository directoryStep 2: Create and Activate the Conda Environment$condaenvcreate-fenvironment.yml# Create Conda environment$condaactivatega_package# Activate the Conda environmentStep 3: Install the Package Using PoetryEnsure the Conda environment is activated. You should seeGroup_9_GA_Metricsin the terminal prompt.$poetryinstall# Install the package using PoetryQuick StartHere is a basic  example of how to use this package:importdscigametricsimportpandasaspddata=pd.read_csv('where/is/your/data/saved.csv')campaign_id=123851219start_date=20220801end_date=20220831metrics_dictionary=compute_metrics(data,campaign_id,start_date,end_date)summary=stat_summary(data,campaign_id,start_date,end_date)plot=daily_plot(data,campaign_id,start_date,end_date,width=300,height=800)campaign_ids=[219011657,140569061,215934049,123851219]metric='conversion_rate'best_worst_campaigns=find_campaigns(data=data,start_date=start_date,end_date=end_date,campaign_ids=campaign_ids,metric=metric)Online DocumentationDocumentation for all functions in the package, as well as a demonstration notebook, can be foundhereon Read the Docs.Main ContributorsBeth Ou-Yang, Ian MacCarthy, Yili Tang, Weilin HanContributingContributions are welcome and greatly appreciated! If you're interested in contributing to this project, take a look at thecontributor guide.Licensedscigametricswas created by DSCI524 Cohort8 Group9. It is licensed under the terms of the MIT license.Creditsdscigametricswas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.