JS script & Google Tag Manager
This article describes how to add and update contacts, manage Telegram and WebPush subscriptions, and initialize events using the Wooxy JS API via Google Tag Manager. This solution allows custom scripts to be placed on website pages without directly modifying the source code.
The implementation uses scripts that interact with the site's environment via the API. It is important to consider the potential impact of content-control or web-filtering software, which may restrict access to certain services or block specific web content based on predefined rules.
Step-by-step instructions
Add a site to the account for contact management (additions and updates).
Download the installation file and upload it to the site's top-level directory.
Create a new tag within the Google Tag Manager account.
Select the "Custom HTML" tag type.
Add the script to the "HTML" field of the "Tag Configuration" form.
Configure of the triggers to activate the tag.
Save the tag and submission of the workspace changes in Google Tag Manager.