Crawl GTM .js snippets from target websites, extract the data object and monitor changes by committing to the tracking branch.
- Clone the repo
- npm install
- Modify config.json
- Set GITHUB_AUTH env variable to your GitHub personal access token
- node index.js
- Clone the repo and make it available in your GitHub account
- Link your GitHub repo to Google Cloud Source
- Modify config.json
- 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
- Setup Google Cloud Scheduler to run the function as often as you want via Pub/Sub