tdurbor commited on
Commit
23a28c1
·
1 Parent(s): f349942

change tag

Browse files
Files changed (1) hide show
  1. app.py +11 -7
app.py CHANGED
@@ -204,14 +204,18 @@ function load_zoom() {
204
  """
205
 
206
  head = """
207
- <!-- Google Tag Manager -->
208
- <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
209
- new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
210
- j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
211
- 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;f.parentNode.insertBefore(j,f);
212
- })(window,document,'script','dataLayer', '""" + f"{google_analytics_tracking_id}" + """');</script>
213
- <!-- End Google Tag Manager -->
 
 
 
214
  """
 
215
 
216
 
217
  def gradio_interface():
 
204
  """
205
 
206
  head = """
207
+
208
+ <!-- Google tag (gtag.js) -->
209
+ <script async src="https://www.googletagmanager.com/gtag/js?id=G-7EKCV97SG2"></script>
210
+ <script>
211
+ window.dataLayer = window.dataLayer || [];
212
+ function gtag(){dataLayer.push(arguments);}
213
+ gtag('js', new Date());
214
+
215
+ gtag('config', '""" + f"{google_analytics_tracking_id}" + """');
216
+ </script>
217
  """
218
+ print(head)
219
 
220
 
221
  def gradio_interface():