The Journify browser template for Google Tag manager.
To add features, fix bugs or just change something in this template. follow these instructions:
- Login to a GTM account. If you haven't done yet, create a test container. (DO NOT USE A CLIENT CONTAINER)
- Navigate to
Templates > Tag Templates > New - On the top-right corner, click on the ellipsis button. Then click Import and import the
template.tplfile. - Make your changes
- To test your changes; follow these instructions from our docs. But make sure you choose the template that you just edited. Not the official Journify's one. After that you can simply test your container on a dummy website (typically a fake html file on your local).
- Once done testing. Go back to
Templates > Tag Templates > <YOUR TEMPLATE>; and On the top-right corner, click on the ellipsis button. Then click Export and replace thetemplate.tplfile with your new one. - Commit your changes and open a PR.
- User Defined Variable
- Add new user-defined variable named
journify_user_agent - Variable Type: JavaScript Variable
- Global Variable Name:
navigator.userAgent
- Add new user-defined variable named
- Update Journify Tracker Tag Template
- Under Additional Init Options
- Set Cookie Keeper host
- Under Permissions Tab
- Open Injects scripts
- Add new URL with
{{cookie_keeper_host}}/* - Save template
- Under Additional Init Options
- Update Google GA4 Tag (Tag Sequencing)
- Open Tags page
- Look for Google GA4 tag and open it
- Under Advanced Settings
- Under Tag Sequencing
- Check Fire a tag before Google GA4fires
- Choose Journify - init tag in Setup Tag
- Under Tag Sequencing
- Save tag
- Open Tags page