You can measure behavioral data about your site with Google Ads and Google Analytics. Follow the steps in this article to set up a tag for your Google Ads or Google Analytics account. Learn more about Installing your tag with a website builder or CMS.
The instructions for setting up the Google tag are different for tag IDs starting with "AW-" (usually, Google Ads accounts) and tag IDs starting with "G-" (usually, Google Analytics properties). Follow the instructions below that correspond with your tag.
Before you begin
Sie benötigen Ihre Google-Tag-ID.
If you have a tag starting with "AW-"
- Melden Sie sich in Ihrem Square-Konto an.
- Klicken Sie im Menü auf der linken Seite auf Online und wählen Sie dann im Pop-up-Menü Online aus.
- Klicken Sie auf der Seite „Online“ auf Settings (Einstellungen) und wählen Sie im Drop-down-Menü die Option Tracking Tools aus.
- Klicken Sie in der Zeile „Add custom header code“ (Benutzerdefinierten Header-Code hinzufügen) auf Add new code (Neuen Code hinzufügen).
- Geben Sie im Pop-up-Fenster „Add custom header code“ einen Namen für den benutzerdefinierten Code ein und fügen Sie das Google-Tag in das Feld „Custom code“ (Benutzerdefinierter Code) ein.
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=TAG_ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'TAG_ID');
</script>
- Sorgen Sie unter „Where would you like to place this code?“ (Wo möchten Sie den Code platzieren?) dafür, dass sich der Code im
<head>
-Abschnitt befindet. - Klicke auf Speichern.
If you have a tag starting with "G-"
- Melden Sie sich in Ihrem Square-Konto an.
- Klicken Sie im Menü auf der linken Seite auf Online und wählen Sie dann im Pop-up-Menü Online aus.
- Klicken Sie auf der Seite „Online“ auf Settings (Einstellungen) und wählen Sie im Drop-down-Menü die Option Tracking Tools (Tracking-Tools) aus.
- Geben Sie unter „Google Analytics“ Ihre Tag-ID ein. Ihre Änderungen werden automatisch gespeichert.