Giter VIP home page Giter VIP logo

gtm_import_export's Introduction

Google Tag Manager Import Export Greasemonkey script

The script will allow you to export and import tags, rules and macros between different GTM accounts and containers.

Installation

This script is supported in Firefox and Greasemonkey or Chrome and Tampermonkey.

  1. Install Greasemonkey for Firefox or Tampermonkey for Chrome
  2. Go to https://github.com/maschek/gtm_import_export/raw/master/Google_Tag_Manager_Import_Export.user.js and install the script into Greasemonkey/Tampermonkey.

Usage

Once installed, go to your GTM account and observe the new interface elements:

Exporting and importing

  1. Choose the tab you want to export (tags, rules or macros)
  2. Check the checkboxes of the elements you want to export, or use [Select/deselect all] button
  3. Click on [Export selected]
  4. The result of the export will appear in the top right textarea. Copy the content of this into your clipboard.
  5. Navigate to the account or container you want to import into
  6. Navigate to the tab what you want to import (Tag, Rule or Macro)
  7. Paste your clipboard content into the top right textarea
  8. Hit import button
  9. Notice the messages in the top left textarea. If something went wrong, you will see here.

Note: Only visible elements will be exported. To export all pages, you have to manually switch pages and export again.

Supported tags:

  • Custom HTML Tag
  • Custom Image Tag
  • AdWords Conversion Tracking

Supported rules:

  • ALL

Supported macros:

  • CUSTOM_VAR
  • COOKIE
  • AUTO_EVENT_VAR
  • CONSTANT
  • EVENT
  • ARBITRARY_JAVASCRIPT
  • DOM_ELEMENT
  • REFERRER
  • URL

Unsupported elements will simply be skipped during export.

Exporting a whole container

To export a whole container into another one, you have to export/import the elements in the following order:

  1. Export/import all Macros
  2. Export/import all Rules
  3. Export/import all Tags

Issues

Open your issues here: https://github.com/maschek/gtm_import_export/issues

Donate

If you found the script useful, why not consider a paypal donation? [Go to PayPal] (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=adam%2emaschek%40gmail%2ecom&lc=US&item_name=Google%20Tag%20Manager%20script&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted)

gtm_import_export's People

Contributors

maschek avatar

Watchers

James Cloos avatar Youssef Taghlabi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.