Преглед изворни кода

testing google tag

tags/1.0.2
Alej пре 3 година
родитељ
комит
5021bb0082
1 измењених фајлова са 10 додато и 0 уклоњено
  1. 10
    0
      vue-theme/index.php

+ 10
- 0
vue-theme/index.php Прегледај датотеку

@@ -1,10 +1,20 @@
1 1
 <!DOCTYPE html>
2 2
 <html <?php language_attributes(); ?>>
3 3
     <head>
4
+        <!-- Google tag (gtag.js) -->
5
+        <script async src="https://www.googletagmanager.com/gtag/js?id=G-R6QRDV6JZD"></script>
6
+        <script>
7
+            window.dataLayer = window.dataLayer || [];
8
+            function gtag(){dataLayer.push(arguments);}
9
+            gtag('js', new Date());
10
+            
11
+            gtag('config', 'G-R6QRDV6JZD');
12
+        </script>
4 13
         <title><?php wp_title(); ?></title>
5 14
         <meta charset="<?php bloginfo( 'charset' ); ?>">
6 15
         <meta name="viewport" content="width=device-width, initial-scale=1">
7 16
         <link rel="prefetch" url="resource-url" />
17
+
8 18
         <?php wp_head(); ?>
9 19
     </head>
10 20
     <body>

Loading…
Откажи
Сачувај