Google Tag Manager connector for Algolia Search Insights.
Head over our Getting Insights and Analytics / Google Tag Manager documentation.
Before working on the project, make sure to disable any ad blockers.
The source for the GTM template is in the src/
folder and gets exported to the ./template.tpl
file.
Builds the GTM template into the
./template.tpl
file.
Each section of the custom template is in the src/
folder. This command compiles the files into a GTM template.
Runs the
build
command in watch mode.
The TEMPLATE_VERSION
variable in the sandboxed JavaScript should be incremented for each change. This variable is used to send usage metrics to Algolia.
To release a new version:
- Run the
build
command to update the generated template - Commit the change (
git commit -m "chore: update version to vx.y.z"
) - Run the
release
command to updatemetadata.yml
file with the commit SHA. - Update the changelog manually (and probably
changeNotes
inmetadata.yml
as well) - Commit it to GitHub
For users to update the template, they need to download it again and to reimport it in the GTM interface (they won't lose their configuration).
Thanks to David Vallejo for his initial work on the custom template.
Apache 2.0 - See LICENSE for more information.