|
34 | 34 |
|
35 | 35 | <link rel="stylesheet" href="{{ url_for('static', filename='css/packet.min.css') }}">
|
36 | 36 |
|
| 37 | + <!-- RUM --> |
| 38 | + <script |
| 39 | + src="https://www.datadoghq-browser-agent.com/datadog-rum.js" |
| 40 | + type="text/javascript"> |
| 41 | + </script> |
| 42 | + <script> |
| 43 | + window.DD_RUM && window.DD_RUM.init({ |
| 44 | + applicationId: '{{ config["RUM_APP_ID"] }}', |
| 45 | + clientToken: '{{ config["RUM_CLIENT_TOKEN"] }}', |
| 46 | + site: 'datadoghq.com', |
| 47 | + service: 'Packet', |
| 48 | + env: '{{ config["DD_ENV"] }}', |
| 49 | + version: '{{ config["VERSION"] }}', |
| 50 | + sampleRate: 100, |
| 51 | + trackInteractions: true |
| 52 | + }); |
| 53 | + |
| 54 | + window.DD_RUM && window.DD_RUM.setUser({ |
| 55 | + id: '{{ info.uid }}', |
| 56 | + realm: '{{ info.realm }}', |
| 57 | + }); |
| 58 | + |
| 59 | + // Add groups to global context so they get interpreted as a list |
| 60 | + window.DD_RUM && window.DD_RUM.addRumGlobalContext('usr', { |
| 61 | + groups: {{ info.groups|safe }}, |
| 62 | + }); |
| 63 | + </script> |
| 64 | + |
| 65 | + |
37 | 66 | <!-- Push Notifications -->
|
38 | 67 | <script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script>
|
39 | 68 | <script>
|
|
66 | 95 | });
|
67 | 96 | });
|
68 | 97 | </script>
|
69 |
| - |
70 |
| - <!-- Analytics --> |
71 |
| - <script async src="https://www.googletagmanager.com/gtag/js?id={{ config['ANALYTICS_ID'] }}"></script> |
72 |
| - <script> |
73 |
| - window.dataLayer = window.dataLayer || []; |
74 |
| - function gtag(){dataLayer.push(arguments);} |
75 |
| - gtag('js', new Date()); |
76 |
| - gtag('set', {'user_id': '{{ info.uid }}' }); |
77 |
| - gtag('config', '{{ config['ANALYTICS_ID'] }}'); |
78 |
| - </script> |
79 | 98 | </head>
|
0 commit comments