{"id":22327203,"url":"https://github.com/getninjas/tagmanager-wrap","last_synced_at":"2025-07-29T17:34:14.315Z","repository":{"id":16535896,"uuid":"80132017","full_name":"getninjas/tagmanager-wrap","owner":"getninjas","description":"Wrapping Google tagmanager and adding some helpers to him","archived":false,"fork":false,"pushed_at":"2022-12-02T10:30:29.000Z","size":3008,"stargazers_count":4,"open_issues_count":14,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-08T03:06:43.021Z","etag":null,"topics":["google","google-tag-manager","javascript","tagmanager-wrap","tracking"],"latest_commit_sha":null,"homepage":"https://getninjas.github.io/tagmanager-wrap","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getninjas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-26T16:27:35.000Z","updated_at":"2020-08-13T18:46:30.000Z","dependencies_parsed_at":"2023-01-11T19:22:24.427Z","dependency_job_id":null,"html_url":"https://github.com/getninjas/tagmanager-wrap","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getninjas%2Ftagmanager-wrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getninjas%2Ftagmanager-wrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getninjas%2Ftagmanager-wrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getninjas%2Ftagmanager-wrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getninjas","download_url":"https://codeload.github.com/getninjas/tagmanager-wrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228035004,"owners_count":17859245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google","google-tag-manager","javascript","tagmanager-wrap","tracking"],"created_at":"2024-12-04T03:08:42.549Z","updated_at":"2024-12-04T03:08:43.248Z","avatar_url":"https://github.com/getninjas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TagManager Wrap\n\n[![Build Status](https://travis-ci.org/getninjas/tagmanager-wrap.svg?branch=master)](https://travis-ci.org/getninjas/tagmanager-wrap)\n[![Maintainability](https://api.codeclimate.com/v1/badges/dce9f6406858d2069bf4/maintainability)](https://codeclimate.com/github/getninjas/tagmanager-wrap/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/dce9f6406858d2069bf4/test_coverage)](https://codeclimate.com/github/getninjas/tagmanager-wrap/test_coverage)\n\nWrapping Google TagManager and adding some helpers to it.\n\n### Until v3.2.1\n* This script appends automatically the googleTagManager script.\n* It also adds an iframe inside a noscript tag for non-js fallback\n\n### After v3.2.1\n* This script don't append the GTM script automatically anymore. For this new version, you must implement GTM snippet following the [official instructions](https://developers.google.com/tag-manager/quickstart).\n* Also, the noscript tag fallback isn't added anymore, because this tag is a fallback for disabled js on browsers, so there's no reason to add it through JS, because it won't work. To add this feature properly, follow the [official instructions](https://developers.google.com/tag-manager/quickstart).\n\n### Documentation\n\nSee live here [https://getninjas.github.io/tagmanager-wrap](https://getninjas.github.io/tagmanager-wrap)\n\n### Install\n\n`npm i tagmanager-wrap  --save`\n\n`yarn add tagmanager-wrap`\n\n### Demo\n\n`npm run demo`\n\n`yarn demo`\n\n### Usage\n\nYou can use it via:\n* GLOBAL variabel\n* CommonJs\n* AMD\n* ES6 Module\n\n#### Methods\n* prependExperiment(experiment)\n* eventCategory(event, infos)\n* custom(obj)\n* bindEvents() - gets all elements from the page that contains `[data-gtm-event=\"ga-event\"]` and adds a click event\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetninjas%2Ftagmanager-wrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetninjas%2Ftagmanager-wrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetninjas%2Ftagmanager-wrap/lists"}