Skip to main content
Embed the tracking script in GTM
Eugene Zastup avatar
Written by Eugene Zastup
Updated over 5 months ago

This is a universal script that can be implemented both for number insertion and for Callback widget and messengers.

Firstly, check if the Google Tag Manager script is inserted in your website's code.

Here's how you can do this:

  1. Go to your web page, click the mouse's right button, and select "View page source."

  2. When you see the web page code, click on Ctrl+F and enter "www.googletagmanager.com/gtm.js" in the search line.

  3. If you didn't find it, go to your GTM account and generate the script for your web page. Once you've done it, you can copy it and insert it into your web page code. Here're some tips for installing your Google Tag Manager code to the web page from Google.

If you've already inserted the GTM script on your web page, go to the next step and implement the number insertion script by creating a tag for it.

Setting the number insertion script using Google Tag Manager

  1. First, create a "Custom HTML" tag

  2. Copy the adapted substitution script:

    To do this, go to the “Call tracking” --> Script Settings. And copy the script

    and put it in your tag.

  3. Set up the trigger "All Pages" for your tag and save the settings.

  4. Then publish the script on your website.

Did this answer your question?