Skip to content

edgee-cloud/gosquared-component

GoSquared component for Edgee

Coverage Status GitHub issues Edgee Component Registry

This is a Rust-based Edgee component that integrates GoSquared analytics using the Edgee Data Collection protocol. It enables you to track events, monitor page views, and identify users—sending data to GoSquared via their /event, /pageview, and /identify endpoints.


✨ Features

  • ✅ Track custom events (track)
  • ✅ Track page views (page)
  • ✅ Identify and update users (user)
  • ✅ Built for Edge execution: fast, secure, serverless

🔧 Settings

This component requires the following settings:

Key Type Required Description
api_key string Your GoSquared API Key from project settings
site_token string Your GoSquared Site Token identifying the property

🧪 Testing Locally

🛠️ Build the component

edgee component build

✅ Run unit tests

edgee component build

🔍 Run a live test with simulated events

edgee components test \
  --event-type track \
  --settings api_key=YOUR_API_KEY,site_token=YOUR_SITE_TOKEN \
  --make-http-request

🚀 Deploy to Edgee Registry

edgee components push

📂 Project Structure

gosquared-component/
├── src/
│   └── lib.rs                 # Main component logic
├── target/
│   └── wasm32-wasip2/
│       └── release/
│           └── gosquared.wasm  # Built WebAssembly output
├── gosquared.png              # Component icon
├── Cargo.toml                 # Rust dependencies
└── edgee-component.toml       # Edgee manifest

📚 Learn More

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •