Introduzione al tagging e al tag Google
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Il tagging è il processo di aggiunta di snippet di codice (chiamati tag) a ogni pagina di
il tuo sito web, per scoprire di più sugli utenti che visitano il sito e su come
interagire con loro.
Il tagging è parte integrante di molti prodotti di misurazione, tra cui Google Ads,
Google Analytics e molti prodotti
di terze parti.
Che tu voglia conoscere i tuoi post del blog più popolari,
pagine di destinazione o i prodotti più apprezzati, i dati che raccoglierai
ti consente di prendere decisioni più consapevoli sul tuo sito e sulle tue strategie di marketing
strategie.
Iniziare a utilizzare il tag Google
Il tag Google è un singolo frammento di codice che puoi trovare in Google Ads,
Analytics e altri prodotti Google simili. Anziché gestire più tag
per diversi account del prodotto Google, puoi utilizzare il tag Google in
l'intero sito web e collegare il tag a più destinazioni.
Configurare il tag Google
La configurazione del tag Google dipende da come è configurato il sito e da come puoi
modificare il codice. Puoi implementare il tag Google sul tuo sito in uno dei seguenti modi
nei seguenti modi:
Google Tag Manager: un sistema di gestione tag che ti consente di configurare e
gestire i tag sul tuo sito senza modificare il codice. Per utilizzare Tag Manager,
Aggiungere due snippet di codice a ogni pagina del sito web. Dopo aver aggiunto il parametro
snippet di codice al tuo codice, non devi modificare il codice molto dopo;
puoi impostare e gestire i tag
tramite il sito web di Tag Manager.
gtag.js: un framework JavaScript che ti consente di inviare dati dal tuo sito a
Prodotti di misurazione di Google. Per configurare gtag.js, aggiungi 1 snippet di codice a
ogni pagina del sito. Per utilizzare gtag.js in modo efficace, devi sapere
modificando JavaScript sul sito.
Se utilizzi uno strumento per la creazione di siti web o un sistema di gestione dei contenuti come Shopify, Wix o
Wordpress, lo strumento per la creazione di siti web o il sistema di gestione dei contenuti, può offrire una
per configurare Tag Manager o gtag.js sul tuo sito.
Per impostare i tag pubblicitari e di misurazione in un'app mobile:
utilizzare l'SDK Google Analytics for Firebase. Poi puoi anche
Utilizzare Tag Manager per modificare e indirizzare i dati nell'app mobile.
Passaggi successivi
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[[["\u003cp\u003eTagging involves adding code snippets to web pages to gather data on visitor behavior and site performance.\u003c/p\u003e\n"],["\u003cp\u003eThe Google tag streamlines tag management, allowing connection to multiple Google products with a single code snippet.\u003c/p\u003e\n"],["\u003cp\u003eImplementing tags can be done through Google Tag Manager or gtag.js, offering varying levels of coding involvement.\u003c/p\u003e\n"],["\u003cp\u003eWebsite builders and content management systems often provide integrations for simplified tag setup.\u003c/p\u003e\n"],["\u003cp\u003eMobile app tagging utilizes the Google Analytics for Firebase SDK and can be managed through Tag Manager.\u003c/p\u003e\n"]]],["Tagging involves adding code snippets to website pages to track user behavior and gain insights for informed decision-making. The Google tag, a unified code snippet, can be implemented across a website and connected to multiple Google products. Implementation methods include Google Tag Manager, which requires two code snippets and allows tag management without coding, and gtag.js, requiring one code snippet and JavaScript proficiency. Website builders and the Firebase SDK offer integrations for simplified implementation.\n"],null,["# Introduction to tagging and the Google tag\n\nTagging is the process of adding snippets of code (called tags) to each page of\nyour website so you can learn about the people who visit your site and how they\ninteract with it.\n\nTagging is an integral part of many measurement products, including Google Ads,\nGoogle Analytics, and many third-party products too.\n\nWhether you want to know about your most popular blog posts, most effective\nlanding pages, or most popular products, the data you'll collect through tagging\nlets you make more informed decisions about your site and your marketing\nstrategies.\n\nGet started with the Google tag\n-------------------------------\n\nThe Google tag is a single piece of code that you can find in Google Ads, Google\nAnalytics, and other similar Google products. Instead of managing multiple tags\nfor different Google product accounts, you can use the Google tag across your\nentire website and connect the tag to multiple destinations.\n\nSet up the Google tag\n---------------------\n\nSetting up the Google tag depends on how your site is set up and how you can\nchange the code. You can implement the Google tag on your site in one of the\nfollowing ways:\n\n- **Google Tag Manager**: A tag management system that lets you set up and\n manage tags on your site without changing your code. To use Tag Manager, you\n add 2 snippets of code to each page of your website. After you add the\n snippets to your code, you don't need to change your code much after that;\n instead, you can set up and manage your tags through the Tag Manager website.\n\n- **gtag.js**: A JavaScript framework that lets you send data from your site to\n Google measurement products. To set up gtag.js, you add 1 snippet of code to\n each page of your site. To use gtag.js effectively, you need to be comfortable\n changing JavaScript on your site.\n\nIf you use a website builder or content management system like Shopify, Wix, or\nWordpress, the website builder or content management system may offer an\nintegration for setting up Tag Manager or gtag.js on your site.\n\nTo set up measurement and advertising tags in a mobile app,\nuse the Google Analytics for Firebase SDK. Then, you can also\nuse Tag Manager to modify and route data in the mobile app.\n\nNext steps\n----------\n\n- [Plan your tag setup](/tag-platform/devguides/prerequisites)\n- Set up the Google tag with:\n - [Tag Manager](https://support.google.com/tagmanager/answer/6102821)\n - [gtag.js](/tag-platform/gtagjs/install)\n - [a website builder or CMS](https://support.google.com/tagmanager/answer/12403447)\n - [the Google Analytics for Firebase SDK](https://firebase.google.com/docs/analytics)"]]