Skip to content

adamlytics/gtm-container-watch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gtm-container-watch

Crawl GTM .js snippets from target websites, extract the data object and monitor changes by committing to the tracking branch.

Run locally

  1. Clone the repo
  2. npm install
  3. Modify config.json
  4. Set GITHUB_AUTH env variable to your GitHub personal access token
  5. node index.js

Run as Google Cloud Function

  1. Clone the repo and make it available in your GitHub account
  2. Link your GitHub repo to Google Cloud Source
  3. Modify config.json
  4. Create a Google Cloud Function based on the Google Cloud Source repo and Pub/Sub as trigger, add your GitHub personal access token as env variable GITHUB_AUTH
  5. Setup Google Cloud Scheduler to run the function as often as you want via Pub/Sub

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%