mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Switch to Vanilla Google Analytics script
This commit is contained in:
parent
83edd06996
commit
c4408d7da1
1 changed files with 20 additions and 1 deletions
|
|
@ -11,6 +11,25 @@ import { gaMeasurementId } from '~/helpers/constants.js'
|
|||
></script>
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script
|
||||
type="text/script"
|
||||
async
|
||||
src={ `https://www.googletagmanager.com/gtag/js?id=${ gaMeasurementId }` }
|
||||
></script>
|
||||
<script type="text/script">
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag () {
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', gaMeasurementId);
|
||||
|
||||
// console.log('I wanna to shake your hand', gaMeasurementId )
|
||||
</script>
|
||||
|
||||
|
||||
<!-- Partytown Google Analytics -->
|
||||
<!-- <script
|
||||
type="text/partytown"
|
||||
async
|
||||
src={ `https://www.googletagmanager.com/gtag/js?id=${ gaMeasurementId }` }
|
||||
|
|
@ -25,4 +44,4 @@ import { gaMeasurementId } from '~/helpers/constants.js'
|
|||
gtag('config', gaMeasurementId);
|
||||
|
||||
// console.log('I wanna to shake your hand', gaMeasurementId )
|
||||
</script>
|
||||
</script> -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue