* fix(analytics): Add cookie_flags to GA4 config for embedded contexts (CAL-5446) Co-Authored-By: hariom@cal.com <hariom@cal.com> * fix(analytics): Fix JavaScript syntax for cookie_flags parameter Co-Authored-By: hariom@cal.com <hariom@cal.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: hariom@cal.com <hariom@cal.com>
30 lines
1.0 KiB
JSON
30 lines
1.0 KiB
JSON
{
|
|
"/*": "Don't modify slug - If required, do it using cli edit command",
|
|
"name": "Google Analytics",
|
|
"slug": "ga4",
|
|
"type": "ga4_analytics",
|
|
"logo": "icon.svg",
|
|
"url": "https://marketingplatform.google.com",
|
|
"variant": "analytics",
|
|
"categories": ["analytics"],
|
|
"publisher": "Cal.com, Inc.",
|
|
"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",
|
|
"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}', {'cookie_flags': 'SameSite=None;Secure'});"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"__createdUsingCli": true,
|
|
"isOAuth": false
|
|
}
|