Google Tag Manager is an easy way to manage all HTML/JavaScript snippets and tags on your website. Using Google Tag Manager, you can quickly add Ringba's JavaScript snippet on your website.
In this article, you will learn how to setup Number Pools and install the Ringba JS Tag with Google Tag Manager.
- Go to Google Tag Manager and select Tags.
- Click New to create a new Tag.
- Enter a name for your tag and click Tag Configuration.
- Select Custom HTML.
-
Paste the Code Snippet for your Ringba Number Pool.
Example:
<script type="text/javascript">
//Add custom tag:
(window._rgba_tags = (window._rgba_tags || [])).push({tag1:"123"});
</script>
<script src="//b-js.ringba.com/<<CampaignID>" async="async"></script>Please note that you need to update CampaignID with the ID for the campaign with your number pool.
You can add a custom tag to be used within Ringba. In the example above, tag1 will be the Name of the tag that will be shown in that call with the value of 123.
You can also push GTM variables using this method by typing two opening brackets {{:
- Click Triggering.
- Choose an existing Trigger or create a new Trigger by clicking the + icon and selecting DOM Ready.
-
Name the Trigger and save it. You can choose to customize the trigger to only fire on specific pages by clicking on Some DOM Ready Events.
-
Save your Tag Configuration and submit the changes. Once completed, Ringba's number pool substitution code should be running on pages with Google Tag Manager installed.
Note: Unfortunately it is not possible to add multiple tags through Google Tag Manager. When linking more than one campaign to the landing page the number pool will only work for the first one added.