Skip to content

Add Google Tag Manager tracking code to all pages #291

@ayushthe1

Description

@ayushthe1

Current Behavior

This issue is for enabling Google Analytics on https://getnighthawk.dev/ . The following code has to be added to all the pages of the website to enable tracking.
This code should be added as high in the <head> of the page as possible.

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TXGF3DB');</script>
<!-- End Google Tag Manager -->

Desired Behavior


Resources

Alternatives / Additional Context


Contributor Resources

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions