The CDNJS - Hosted Libraries custom tag template is a tag template for Google Tag Manager’s community template gallery.

Vendor documentation
Blog post
Gallery entry
GitHub repo


You can use this template to load third-party libraries from the CDNJS content distribution network.

There is a preset list of the most popular libraries, and you can also just provide a path to the library manually.

If you use the drop-down list to select the library, the template will check if the global method for that library has already been initialized, in which case the template is blocked from redundantly loading the library again.

Release notes

Date Changeset
6 January 2020 Initial release.