Skip to content

Commit

Permalink
make gtag dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
flashdesignory committed Aug 2, 2024
1 parent 82df8ee commit da2b218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/third-parties/google-analytics/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"key": "gtag"
},
{
"code": "window[{{l}}]=window[{{l}}]||[];function gtag(){window[{{l}}].push(arguments);};gtag('js',new Date());gtag('config','{{id}}')",
"code": "window[{{l}}]=window[{{l}}]||[];window['gtag-{{l}}']=function (){window[{{l}}].push(arguments);};window['gtag-{{l}}']('js',new Date());window['gtag-{{l}}']('config','{{id}}')",
"params": ["id"],
"optionalParams": {
"l": "dataLayer"
Expand Down

0 comments on commit da2b218

Please sign in to comment.