|
2 | 2 |
|
3 | 3 | {% block footer %}
|
4 | 4 | {{ super() }}
|
5 |
| -<script> |
6 |
| - (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
7 |
| - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
8 |
| - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
9 |
| - })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
10 |
| - |
11 |
| - ga('create', 'UA-90545585-2', 'auto'); |
12 |
| - ga('send', 'pageview'); |
13 |
| - |
14 |
| -</script> |
15 |
| - |
16 | 5 | <script async src="https://www.googletagmanager.com/gtag/js?id=UA-117752657-2"></script>
|
17 | 6 |
|
18 | 7 | <script>
|
|
45 | 34 | tutorialLink: window.location.href,
|
46 | 35 | downloadTitle: $(this).attr("data-response")
|
47 | 36 | });
|
48 |
| - ga('send', { |
49 |
| - hitType: 'event', |
50 |
| - eventCategory: 'Download', |
51 |
| - eventAction: 'click', |
52 |
| - eventLabel: $(this).attr("data-response") |
| 37 | + |
| 38 | + gtag('event', 'click', { |
| 39 | + 'event_category': 'Download', |
| 40 | + 'event_label': $(this).attr("data-response") |
53 | 41 | });
|
| 42 | + |
54 | 43 | gtag('event', 'click', {
|
55 | 44 | 'event_category': $(this).attr("data-response"),
|
56 | 45 | 'event_label': $("h1").first().text(),
|
|
61 | 50 | $("[data-behavior='was-this-helpful-event']").on('click', function(){
|
62 | 51 | $(".helpful-question").hide();
|
63 | 52 | $(".was-helpful-thank-you").show();
|
| 53 | + |
64 | 54 | fbq('trackCustom', "Was this Helpful?", {
|
65 | 55 | tutorialLink: window.location.href,
|
66 | 56 | tutorialTitle: $('h1:first').text(),
|
67 | 57 | helpful: $(this).attr("data-response")
|
68 | 58 | });
|
69 |
| - ga('send', { |
70 |
| - hitType: 'event', |
71 |
| - eventCategory: 'Was this Helpful?', |
72 |
| - eventAction: 'click', |
73 |
| - eventLabel: $(this).attr("data-response") |
| 59 | + |
| 60 | + gtag('event', $(this).attr("data-response"), { |
| 61 | + 'event_category': 'Was this Helpful?', |
| 62 | + 'event_label': $(this).attr("data-response") |
74 | 63 | });
|
| 64 | + |
75 | 65 | gtag('event', $(this).attr("data-response"), {
|
76 | 66 | 'event_category': 'Was this Helpful?',
|
77 | 67 | 'event_label': $("h1").first().text()
|
|
0 commit comments