Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Tag Script added to page #17

Open
Nayuken opened this issue Sep 26, 2024 · 4 comments
Open

Google Tag Script added to page #17

Nayuken opened this issue Sep 26, 2024 · 4 comments
Assignees

Comments

@Nayuken
Copy link
Collaborator

Nayuken commented Sep 26, 2024

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, as "GTM-MCHLHCBJ". 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.
    Image

Implement the Code Snippets in the of the Sample HTML Page

Both code snippets should be implemented in the <head> 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 <body> 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

@Nayuken Nayuken assigned Nayuken and stephen-g-goss and unassigned Nayuken Oct 2, 2024
@elizabethbrady-ep
Copy link
Collaborator

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

@elizabethbrady-ep
Copy link
Collaborator

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

@elizabethbrady-ep
Copy link
Collaborator

@stephen-g-goss there is a content security policy preventing GTM from loading on in the QA site - can we get this updated so we can test the GTM container in QA? Image

@stephen-g-goss
Copy link
Collaborator

Hi @elizabethbrady-ep - just added an additional trusted site if you can try again when you have a moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants