@bertha
To add Google Tag Manager (GTM) code directly to a web page, you need to follow these steps:
- Sign in to your Google Tag Manager account or create a new one.
- Create a new container by clicking on "Create an Account" or selecting an existing account.
- Set up a new container by entering a name and selecting the appropriate target platform (Web, iOS, Android).
- Once your container is created, you will be provided with two code snippets - one for the head section and another for the body section of your web page.
- Copy the entire code snippet provided for the head section of your web page.
- Open your web page's HTML file in a text editor or any suitable editor.
- Paste the copied code snippet into the head section of your HTML file, just before the closing tag.
- Save the changes made to your HTML file.
- Copy the code snippet provided for the body section of your web page.
- Paste the copied code snippet into the body section of your HTML file, just after the opening tag.
- Save the changes made to your HTML file.
- Make sure to publish your container in Google Tag Manager to activate the tags, triggers, and variables associated with it.
Note: It is recommended to add the GTM code to all the pages of your website to ensure tracking is consistent across all relevant pages.