Fix Ga4 tracking (#6630)

This commit is contained in:
Hariom Balhara 2023-01-23 14:39:16 +05:30 committed by GitHub
parent 5714471b9a
commit 9602ac29fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 18 deletions

View File

@ -12,16 +12,18 @@
"email": "support@cal.com",
"description": "Google Analytics is a web analytics service offered by Google that tracks and reports website traffic, currently as a platform inside the Google Marketing Platform brand.",
"extendsFeature": "EventType",
"tag": {
"scripts": [
{
"src": "https://www.googletagmanager.com/gtag/js?id={TRACKING_ID}",
"attrs": {}
},
{
"content": "window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '{TRACKING_ID}');"
}
]
"appData": {
"tag": {
"scripts": [
{
"src": "https://www.googletagmanager.com/gtag/js?id={TRACKING_ID}",
"attrs": {}
},
{
"content": "window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '{TRACKING_ID}');"
}
]
}
},
"__createdUsingCli": true
}

View File

@ -11,15 +11,17 @@
"publisher": "Cal.com, Inc.",
"email": "help@cal.com",
"extendsFeature": "EventType",
"tag": {
"scripts": [
{
"src": "https://plausible.io/js/script.js",
"attrs": {
"data-domain": "{TRACKED_DOMAIN}"
"appData": {
"tag": {
"scripts": [
{
"src": "https://plausible.io/js/script.js",
"attrs": {
"data-domain": "{TRACKED_DOMAIN}"
}
}
}
]
]
}
},
"description": "Simple, privacy-friendly Google Analytics alternative.",
"__createdUsingCli": true