To receive E-commerce data from the site, you need to implement settings in your GTM account. All data is sent to dataLayer.
To simplify the work, we have made all the necessary settings and provide them in the attached file.
In this file, you need to implement several changes: specify the keys of your GTM account,
after making changes to this file, you can upload it to your GTM account and the settings will be added automatically.
Data to be changed:
- account_Id replace with your account ID: you can quickly find it in the account link in the browser line
GTM: accounts/1234567890 (occurs 29 times in the file) - Replace container_Id with the account container ID: you can quickly find it in the account link in the browser line
GTM: containers/123456789 (occurs 29 times in the file) 3. Replace domain.md with the domain of your site (occurs 1 time in the file) 4. GTM-XXXXXXXX replace with your account tag (occurs 2 times in the file) 5. G-XXXXXXXXXX replace with the Google Analytics account tag (occurs 1 time in the file)
After changing the file, save it and you can upload it to your GTM account. To do this, go to the Administration tab, select Import container and the Select imported file button: select the file and it is loaded, adding all the necessary settings.
You can open and edit the file in Sublime Text: https://www.sublimetext.com/
Files:
- attachfile_ example.json (48.47KB)