This is an unofficial Google Tag Manager custom template for the trbo onsite personalization platform. It allows tracking of all important data points along the on-site customer journey. In order to work, at least one tag in "Plugin code" mode must be integrated on every single page.
Work on the template should be done in Google Tag Manager's native template editor. This is to ensure the template has access to all the latest features of the template editor, and to make sure it passes GTM's own validation when exporting the changes.
To import the template into Google Tag Manager:
- In a Google Tag Manager web container (any container will do), browse to Templates and click to create a new template.
- From the template action menu, choose Import.
- Locate the
template.tplfile from this repo, and import it into the template editor.
Make the changes you wish. Make sure the unit tests pass (in the Tests tab of the editor). Update the tests if necessary.
Once you're done, follow these steps:
- Save the template in the template editor.
- From the action menu, choose Export.
- Replace the
template.tplfile in this repo with the exported file (make sure to keeptemplate.tplas its name).. - Commit the changes to the
template.tplfile. - Copy the commit hash.
- Edit
metadata.yamlin the template folder, and add the hash with itschangeNotesas the latest version. - Move the previous latest version into the list of
Older versions. - Save changes to
metadata.yamland commit them. - Finally, push the changes to the repo (should include the commit to
template.tpland the commit tometadata.yaml).
After pushing the changes, Google Tag Manager should update the template in the community gallery within some hours to some days.
Also see detailed instructions on how to submit templates to the Community Template Gallery.
This tag template is based on the great work for Facebook Pixel custom template by Simo Ahava.
Original copyright 2019 Simo Ahava. Modifications copyright 2022 Norman Höhne.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.