gtm-js 0.1.0

A rustic wrapper around Google's gtm.js tag manager snippet.
Documentation

gtm-js Crates.io

A rustic wrapper around Google's gtm.js tag manager. See the gtm-js-sys crate for a more low level wrapper.

Example

Ensure the gtm.js snippet has been properly installed before your wasm module runs. Instructions can be found in the gtm.js documentation.

use serde_json::json;

fn main() {
    gtm_js::push(json!({
        "event": "pageview",
        "page_title": "homepage",
        "page_path": "/home",
    }).unwrap();
}

License

This project is licensed under either of

at your option.

Contributing

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.