Tag Manager Overview
Google Tag Manager helps you manage the many tags, or snippets of code, that are related khổng lồ your marketing chiến dịch events. Google Tag Manager gives you the ability to lớn add tracking tags to lớn your site to measure the audience, or lớn personalize, retarget, or conduct search engine marketing initiatives.
Bạn đang xem: Tag manager overview
Google Tag Manager directly transfers data and events to lớn Google Analytics, Enhanced Ecommerce và other third-party analytics solutions, lớn produce a clear picture of how well your site, products, and promotions are performing.
You should have sầu a Google Analytics and Tag Manager account lớn continue this process. The following instructions walk you through the process of configuring your Google accounts, configuring your internetstartup.vn lớn store, and creating a tag.
If your business is subject khổng lồ privacy regulations such as the General Data Protection Regulation and/or the California Consumer Privacy Act, see Google Privacy Settings.
Step 1. Configure Your Google Analytics Account
See Google’s Set up Site Search for the basics you need to get started. Also see the Google guides for Google Analytics and Google Tag Manager.
Sign in khổng lồ your Google Analytics trương mục.
To enable Internal Site Search Tracking, vì the following:
Navigate lớn Select View > View Settings.
Set Site Search Tracking lớn On.
Set Query parameter lớn q.
When complete, Save the settings.
To enable display features, vì chưng the following:
Choose Property Settings.
Under Advertising Features, phối Enable Demographics & Interest Reports khổng lồ On.
Save the settings.
To enable Ecommerce Tracking, bởi vì the following:
Navigate to Select View > Ecommerce Settings.
Set Enable Ecommerce to On.
Set Enable Enhanced Ecommerce Reporting to On.
Save the settings.
Reload the page khổng lồ verify that all the settings remain On.
If not all settings are On, repeat the previous steps, save, và reload the page. Repeat this process until all settings are set khổng lồ On.
Step 2. Configure Your Google Tag Manager Account
The following instructions show how khổng lồ configure a new container with the basic settings. A sample Composer configuration (.json) tệp tin is used khổng lồ simplify the process, importing to lớn generate a tag in a new container. For this example, we recommover that you create a new container, rather than modify an existing container.
For additional information, see Google’s Container export and import. These instructions walk-through importing a sample JSON to lớn a new container.
Download the linked file GTM_M2_Config_json.txt & bởi the following:
Open the file in an editor, và save sầu as GTM_M2_Config.json.
Zip the tệp tin to lớn produce an archive called GTM_M2_Config.zip.
The zipped file will be uploaded directly lớn Google Tag Manager, and does not need to lớn be copied khổng lồ your VPS.
Navigate to Admin > Container > Import Container.
Xem thêm:
Cliông chồng Choose container file và select the json file.
Under Choose workspace, clichồng New.
Enter a title and mô tả tìm kiếm, then click Save.
Select one of the following actions lớn import the file:
The Overwrite option should be selected for a new container.
The Merge option should be selected if you are using an existing container.
Cliông chồng Preview khổng lồ đánh giá the tags, triggers, and variables.
To edit the Google Analytics ID that is referenced in variables, do the following:
Navigate to Variables > User-Defined Variables.
Choose Google Analytics. Then, update the placeholder (UA-xxxxxx-x) with your own GA ID.
Follow Google’s instructions khổng lồ add tags, triggers, and variables khổng lồ the new container.
If you have sầu settings in another container that you want to use, they can be moved khổng lồ the new container.
Clichồng Confirm when complete.
Follow Google’s instructions to lớn publish the new container.
Step 3. Configure Your Store
Log in lớn the Admin of your Magenlớn store.
On the Admin sidebar, go to Stores > Settings > Configuration.
In the left panel, exp& Sales and choose Google API.
Exp&


Set Enable to lớn Yes.
Set Account type to lớn Google Tag Manager.
In the Container ID field, enter your GTM ID (GTM-xxxxxx).
If you are also using Google Analytics lớn nội dung experiments, mix Enable Content Experiments lớn Yes.
Use the default values for the remaining fields.
When complete, click Save Config.
Test your Google Tag Manager settings khổng lồ verify that everything works correctly.
Field Descriptions
Enable | Store View | Determines if Google Analytics Enhanced Ecommerce can be used to lớn analyze activity in your store. Options: Yes / No |
Account type | Store View | Determines the Google tracking code that is used to monitor store activity and traffic. Options: Google Analytics / Google Tag Manager |
Anonymize IP | Store View | Determines if identifying information is removed from IPhường addresses that appear in Google Analytics results. Xem thêm: Diệt Virus Cho Facebook Bị Dính Virus, Cách Khắc Phục Khi Facebook Bị Dính Virus |
Enable Content Experiments | Store View | Activates Google Content Experiments, which can be used to thử nghiệm up khổng lồ ten different versions of the same page. Options: Yes / No |
Container Id | Store View | If Google Tag manager is already installed & configured for your store, the Container ID appears automatically in this field. |
List property for the catalog page | Store View | Identifies the Tag Manager property associated with the catalog page. Default value: Catalog Page |
List property for the cross-sell block | Store View | Identifies the Tag Manager property associated with the cross-sell block. Default value: Cross-sell |
List property for the up-sell block | Store View | Identifies the Tag Manager property associated with the up-sell blochồng. Default value: Up-sell |
List property for the related products block | Store View | Identifies the Tag Manager property associated with the related products blochồng. Default value: Related Products |
List property for the search results page | Store View | Identifies the Tag Manager property associated with the tìm kiếm results page. Default value: Search Results |
“Internal Promotions” for promotions field “Label” | Store View | Identifies the Tag Manager property associated with the labels for internal promotions. Default value: Label |
