⚠️  Pre-launch: We're currently in the final stage of testing before publishing the first stable release. 🚀
A simple, yet powerful Google Tag Manager alternative that is fully open-sourced and privacy-friendly. Our in-built Google Analytics alternative doesn't use any cookies and is fully GDPR, CCPA and PECR compliant. We've made it quick and easy to try a demo or simply host it yourself in production. We'll also be offering a cloud hosted version in the near future.
The Data Manager provides pluggable backends to send data anywhere, and we've got a pipeline to increase both connectors and features. In just a few clicks, design a schema, configure a back-end and create an endpoint to send data to. The Tag Manager uses this same underlying tech to provide analytics.
Our mission has been to create an intuitive Tag Management tool that can be fully extended via custom platforms (built by our community!). We're a small team that is passionate about building great open-source software and hopefully reducing the market share of much larger companies. We are not a fan of increasing corporate or government surveillance, and we fundamentally believe that your website's users deserve better - this however needs to be balanced with the business requirement to monetise a property and personal data being shared.
Here is a one-line example of how to get started if you already have Docker Compose installed.
~> curl -L https://github.com/scale8/tag-manager/raw/master/docker-compose.yml | docker-compose -f - up
Once the command above has started the services, point your browser at http://127.0.0.1:8080
. You will be prompted to enter some basic details to configure the project.
Or if you have checked out the project already and installed the dependencies via ~> yarn install:all
and wish to run it locally: -
~> yarn run:all
We've architected the entire platform to support docker and limited where possible complex build processes and mounting of extra volumes. We're scripting hard to provide complete one-click production ready setups for both AWS, Google Cloud and custom kubernetes setups.
Component | Description |
---|---|
API | Contains all the business logic and provides GraphQL / RESTFul endpoints that power the UI |
Common | A small common library that is shared between project components |
Edge | Designed to scale horizontally, the edge server is responsible for delivering platforms at the edge and also tracking data in |
Platforms | Custom platforms created by the community and Scale8 that extend the functionality of the Tag Manager |
Router | A simple router, created using Nginx and designed for spinning up the self-hosted version quickly |
UI | Provides a static build of the UI using Next.js & React |
- Install all project dependencies:
~> yarn install:all
- Build all projects:
~> yarn build:all
As not everyone has the requirement to use a full Tag Manager, we've also provided an option to generate an extremely light version that only requires a few lines of JavaScript.
We have also provided full support for tracking Single Page Applications (SPAs) and hash-routing. These can be enabled when you install your application.
- Tags: Create tags that automatically load, or include them on the fly in your application.
- Rule Groups: Tags can be associated with one or more Rule Groups that can be run in parallel.
- Rules: Rule groups can contain multiple rules with the first rule winning. Rules can also be repeated once they've won.
- Events: Attach events to rules as triggers. Once attached they will listen for your chosen event to occur before allowing a rule to proceed.
- Conditions & Exceptions: Attach conditions and exceptions to rules. These will test your data containers / data layers.
- Actions: Once events and/or conditions are satisfied, then trigger one or more actions. App-state enables actions to trigger other actions.
- Action Groups: Action groups contain actions and provide a useful container to separate logic.
- Action Group Distributions: Run experiments (A/B tests) or monitor just a percentage of traffic. Easily distribute your actions across your users.
- Installed Platforms: Install 3rd party platforms submitted by our community. These platforms extend Events, Data Containers and Actions.
- Installed Platform Revisions: A revision is locked to a platform revision. Upgrade and deploy with confidence as connect platforms change.
- Environments: Create as many environments as your team requires, matching your existing workflows.
- Revision Control: All changes happen within a new revision. Preview and test without complex release cycles. Deploy with confidence.
- Debugging: Debug your application with ease. Remote debugging coming soon!
- Analytics: A simple and intuitive set of analytics tools. Event tracking with Event Group support.
- Analytics-only Mode: Run an incredibly lightweight snippet of JavaScript code to gain full analytics data.
- Ingest Endpoints: Generate new endpoints to send data to in just a few clicks.
- Data Structure: Compose a data structure that is compatible with any backend we offer. Design once, use everywhere.
- Revisions: Everything sits under revision control. Release with confidence.
- Usage Monitoring: Track endpoint requests and data usage.
- Environments: Test your latest data structure without compromising your production setup. Roll-back in seconds.
- Team Support: Invite team members and manage access levels.
- Full API Support: Automate everything - The UI is static and calls the GraphQL API for everything.
We've done our best to simplify the process of organising and managing tags across one or more web properties. The Tag Manager is based on an event-driven, rule-based engine whereby a rule is triggered when Events and Conditions and Exceptions are all met, resulting in one or more Actions being taken.
A triggered event within the browser can be easily managed by our simple interface. A clicked link, a page coming into focus, or a submitted form are all examples of events you may wish to listen to.
A condition is a test made on a data container and aims to assert that some key belonging to a data container object is aligned with the expected value. An exception aims to make the same test, but instead exclude the rule should the test pass.
Upon meeting the rule's required events and condition, an action will be fired. Learn more about actions here.
- UI: Next.js, TypeScript, React, Apollo, GraphQL, Material UI.
- Edge: Micronaut, Java, Maven.
- Router: Nginx - Used for self-hosted version only and not required for all setups.
- API: InversifyJS, Node, TypeScript, Express, MongoDB, Apollo, GraphQL, Jest.
- Platforms: TypeScript, Webpack, Jest.
We originally started off with a TypeScript front-end and Scala driven back-end. To provide the code transparency we wanted, coupled with a decision to open-source the project required us to move to almost purely TypeScript with just the edge server in Java. We fundamentally believe the future of this project sits with the open-source community now and there are more TypeScript and Java engineers than Scala engineers.
Just before releasing we've moved from CRA to Next.js too. We've also introduced inversion of control (IOC) in our TypeScript back-end. Our goal is for this project to be as extensible as possible. A plug and play model provides us with the opportunity to provide multiple services and prevent lock-ins.
container.bind<BaseStorage>(TYPES.BackendStorage).to(MongoDBStorage).inSingletonScope();
container.bind<BaseDatabase>(TYPES.BackendDatabase).to(MongoDb).inSingletonScope();
container.bind<BaseLogger>(TYPES.BackendLogger).to(ConsoleLogger).inSingletonScope();
container.bind<BaseEmail>(TYPES.BackendEmail).to(Mailer).inSingletonScope();
container.bind<BaseConfig>(TYPES.BackendConfig).to(EnvironmentConfig).inSingletonScope();
We've taken a similar approach with our Java code too.
@Replaces(StorageInterface.class)
@Singleton
@Requires(property = "backend-storage", value = "google")
public class GoogleStorage implements StorageInterface {
...
}
At present, we provide only MongoDB and Google's BigQuery for analytics. MongoDB is only suitable for small projects and for the purpose of demo / testing. We have full Clickhouse support in our yet to be released cloud version, and we'll be adding this support in the self-hosted version shortly along with Redshift and Postgres.
We've also removed our hourly aggregation pipelines from the self-hosted version. This added an unnecessary degree of complexity for the vast majority of use cases. There is a plan to potentially re-introduce this later and should anyone require it, please let us know.
All of our documentation is designed for the cloud version of the product, however we'll be adding more detailed documentation for the self-hosted version soon. We've hidden away some features such as payment processing and SSL termination for custom domains that are not relevant to the self-hosted version.
The entire UI is powered by GraphQL using Apollo and the API documentation is automatically generated and easily navigated.
- Open-source project: Provide a fully open-sourced version of the platform.
- Error tracking: Introduce error tracking for web applications directly into your existing analytics. If the Tag Manager is on the page, and an error is detected, we'll automatically log it for you.
- Analytics backends: New backends to support Clickhouse and Redshift.
- Prebid & Google Ads (DFP) Support: We know that some publishers will need to run ads. Our goal here is to enable full support for Prebid and Google Ads, providing a simple setup of tags for publishers.
- Shopify: A new custom platform, built by us to support anyone using the Shopify platform.
- Code refactor & test coverage: As we push for a 0.1.0 build, we are aiming for complete test coverage and also a refactor of some business logic too.
- Cloud version: Offering a few additional features, instant setup and fully hosted by us.
- Server-to-Server support: Ability to execute code server-side and reduce latency on the client whilst gaining access to more features (e.g run jobs in parallel). We've already built this for the cloud version, but we need to move logic to the new Edge server.
All we ask is that you star or watch this on GitHub if you like the project. We'd love people to share and blog about this too! All issues will be responded to quickly in GitHub, and we're excited to see where this goes next.
Author | GitHub | |
---|---|---|
Christopher Beck | ||
Alessandro Barzanti |