URL Parser - Custom Variable Template

The URL Parser custom variable template is a Server Container variable template for Google Tag Manager’s community template gallery.

Resource
Blog post
Gallery entry
GitHub repo

Description

The URL Parser template takes any URL string as the input, and return whichever component type you like. It is modelled after the built-in URL variable type in web containers.

The template works by default with the page_location field in the event data object, but can be configured to use any URL string instead.

Read the blog post for more details.

Release notes

Date Changeset
2 April 2021 Initial release.