Skip to content

mashkovtsevlx/notion-page-views

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Allows tracking shared Notion page views. View count will only display in the shared page accessed by a shared link, not through your Notion app

https://youtu.be/0Ko6VJ2r8ns

Local development

  1. npm i
  2. serverless login
  3. npm run dynamodb_install_local
  4. serverless plugin install -n serverless-dynamodb-local
  5. Install aws cli
  6. aws configure (Use credentials created from user in IAM)
  7. npm run start_local
  8. There's no 7-th step. System will create a user and request credentials automatically.

Usage

Add an embedded block to Notion. Use the lambda public URL. Url format is: https://<lambda_url>/<page_id>?size=60&family=monospace&text=Views

Parameters info:

  1. page_id (string) - Page id unique for your Notion workspace. You can come up with your own page id, it has to be any random string
  2. size (number) - Font size
  3. family (string) - Font Family
  4. text (string) - Text shown before the view count. Don't forget to urlencode it

About

Allows tracking shared Notion page views

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published