A rustic wrapper around Google's [gtag.js] javascript framework. See the
gtag-js-sys
crate for a more low level wrapper.
Ensure the [gtag.js] snippet has been properly installed before your wasm module runs. Instructions can be found in the [gtag.js documentation].
```rust use gtagjs::DataLayer; use serdejson::json;
fn main() { let gtag = DataLayer::new("GAMEASUREMENTID");
gtag.push("config", json!({
"page_title": "homepage",
"page_path": "/home",
}).unwrap();
} ```
This project is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.