How To Get Page Views From Google Analytics via a Netlify Serverless function

Written by javaad | Published 2020/09/10
Tech Story Tags: netlify | serverless | expressjs | google-analytics | software-development | serverless-top-story | automate-page-view-capturing | netlify-analytics-serverless | web-monetization

TLDR How To Get Page Views From Google Analytics via a Netlify Serverless function. The guide is based on how to run Express.js apps as serverless functions. It uses the serverless-http npm package to retrieve Google Analytics page views. Google Analytics has a powerful API, all I really needed to do was call that API and retrieve my information. But ideally I wouldn't want to be making that call directly from this blog as that would mean exposing my API key and any other sensitive information to anyone who knows hows how to press F12.via the TL;DR App

no story

Written by javaad | Software developer specializing in cloud architecture, identity management and distributed systems.
Published by HackerNoon on 2020/09/10