searchdiscovery / VPAL

An Apollo generated Event Driven Data Layer
0 stars 2 forks source link

Google Tag Script added to page #17

Open Nayuken opened 3 weeks ago

Nayuken commented 3 weeks ago

Google Tag Manager Deployment

The embed code is a script tag that you put on your web pages to load and execute the logic you build in GTM, including logic to configure and deploy tags for analytics, 3rd parties, and other Google services.

To install GTM on your web application:

  1. In Google Tag Manager, click Workspace

  2. Near the top right corner of the window, find your container ID, formatted as "GTM-XXXXXX". Click the container ID to launch the Install Tag Manager modal.

  3. Copy and paste the code snippets into your website as instructed in the Install Tag Manager box.

Implement the Code Snippets in the of the Sample HTML Page

Both code snippets should be implemented in the element of all HTML pages that will share the property. You might have one or several template files which control this globally across the site, making it a straightforward process.

Place the <script> code snippet in the <head> of your web page's HTML output, as close to the opening <head> tag as possible, but below any Data Layer object settings.

Place the <noscript> code snippet immediately after the tag in your HTML output.

 

This documentation from Google is helpful for ecommerce definitions: https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?client_type=gtm

elizabethbrady-ep commented 4 days ago

@Nayuken can you update this item with the actual GTM container code for this project?

elizabethbrady-ep commented 4 days ago

and can you add the Harvard team to the GTM container if we want them to pull the code from there (at tagmanager.google.com) @Nayuken