paint-brush
How To Get Page Views From Google Analytics via a Netlify Serverless functionby@javaad
1,474 reads
1,474 reads

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

by Javaad4mSeptember 10th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

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.

Company Mentioned

Mention Thumbnail
featured image - How To Get Page Views From Google Analytics via a Netlify Serverless function
Javaad HackerNoon profile picture
Javaad

Javaad

@javaad

Software developer specializing in cloud architecture, identity management and distributed systems.

About @javaad
LEARN MORE ABOUT @JAVAAD'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Javaad HackerNoon profile picture
Javaad@javaad
Software developer specializing in cloud architecture, identity management and distributed systems.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite